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

Method setNetworkActive

src/qt/bitcoingui.cpp:948–966  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

946}
947
948void BitcoinGUI::setNetworkActive(bool network_active)
949{
950 updateNetworkState();
951 m_network_context_menu->clear();
952 m_network_context_menu->addAction(
953 //: A context menu item. The "Peers tab" is an element of the "Node window".
954 tr("Show Peers tab"),
955 [this] {
956 rpcConsole->setTabFocus(RPCConsole::TabTypes::PEERS);
957 showDebugWindow();
958 });
959 m_network_context_menu->addAction(
960 network_active ?
961 //: A context menu item.
962 tr("Disable network activity") :
963 //: A context menu item. The network activity was disabled previously.
964 tr("Enable network activity"),
965 [this, new_state = !network_active] { m_node.setNetworkActive(new_state); });
966}
967
968void BitcoinGUI::updateHeadersSyncProgressLabel()
969{

Callers

nothing calls this directly

Calls 2

setTabFocusMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected