MCPcopy Create free account
hub / github.com/ElementsProject/elements / updateNetworkState

Method updateNetworkState

src/qt/rpcconsole.cpp:960–971  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

958}
959
960void 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
973void RPCConsole::setNumConnections(int count)
974{

Callers

nothing calls this directly

Calls 3

getNumConnectionsMethod · 0.80
getNetworkActiveMethod · 0.80
setTextMethod · 0.80

Tested by

no test coverage detected