MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / updateNetworkState

Method updateNetworkState

src/qt/rpcconsole.cpp:845–856  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

843}
844
845void 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
858void RPCConsole::setNumConnections(int count)
859{

Callers

nothing calls this directly

Calls 2

getNumConnectionsMethod · 0.80
getNetworkActiveMethod · 0.80

Tested by

no test coverage detected