| 327 | } |
| 328 | |
| 329 | UniValue 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 | |
| 340 | static UniValue GetNetworksInfo() |
| 341 | { |
nothing calls this directly
no test coverage detected