MCPcopy Create free account
hub / github.com/LUX-Core/lux / switchnetwork

Function switchnetwork

src/rpcnet.cpp:329–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

327}
328
329UniValue switchnetwork(const UniValue& params, bool fHelp) {
330 if (fHelp || params.size() != 0)
331 throw runtime_error(
332 "switchnetwork\n"
333 "Toggle all network activity temporarily.");
334
335 SetNetworkActive(!fNetworkActive);
336
337 return fNetworkActive;
338}
339
340static UniValue GetNetworksInfo()
341{

Callers

nothing calls this directly

Calls 2

SetNetworkActiveFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected