| 958 | } |
| 959 | |
| 960 | void RPCConsole::updateNetworkState() |
| 961 | { |
| 962 | QString connections = QString::number(clientModel->getNumConnections()) + " ("; |
| 963 | connections += tr("In:") + " " + QString::number(clientModel->getNumConnections(CONNECTIONS_IN)) + " / "; |
| 964 | connections += tr("Out:") + " " + QString::number(clientModel->getNumConnections(CONNECTIONS_OUT)) + ")"; |
| 965 | |
| 966 | if(!clientModel->node().getNetworkActive()) { |
| 967 | connections += " (" + tr("Network activity disabled") + ")"; |
| 968 | } |
| 969 | |
| 970 | ui->numberOfConnections->setText(connections); |
| 971 | } |
| 972 | |
| 973 | void RPCConsole::setNumConnections(int count) |
| 974 | { |
nothing calls this directly
no test coverage detected