| 843 | } |
| 844 | |
| 845 | void RPCConsole::updateNetworkState() |
| 846 | { |
| 847 | QString connections = QString::number(clientModel->getNumConnections()) + " ("; |
| 848 | connections += tr("In:") + " " + QString::number(clientModel->getNumConnections(CONNECTIONS_IN)) + " / "; |
| 849 | connections += tr("Out:") + " " + QString::number(clientModel->getNumConnections(CONNECTIONS_OUT)) + ")"; |
| 850 | |
| 851 | if(!clientModel->node().getNetworkActive()) { |
| 852 | connections += " (" + tr("Network activity disabled") + ")"; |
| 853 | } |
| 854 | |
| 855 | ui->numberOfConnections->setText(connections); |
| 856 | } |
| 857 | |
| 858 | void RPCConsole::setNumConnections(int count) |
| 859 | { |
nothing calls this directly
no test coverage detected