RPC: Add "togglenetwork" method to toggle network activity temporarily
commite38993bb36801d492cad87479b8473794f19c9da
authorJon Lund Steffensen <jonlst@gmail.com>
Tue, 26 Mar 2013 01:38:24 +0000 (26 02:38 +0100)
committerLuke Dashjr <luke-jr+git@utopios.org>
Mon, 24 Oct 2016 10:23:58 +0000 (24 10:23 +0000)
tree805ddc37482556fac351fa2a9e20d0e93219ef2b
parent7c9a98aac843c9efabd8653caebc35e968b2f335
RPC: Add "togglenetwork" method to toggle network activity temporarily

RPC command "togglenetwork" toggles network and returns new state after command.
RPC command "getinfo" returns "networkactive" field in output.
src/net.h
src/rpc/misc.cpp
src/rpc/net.cpp