Documentation exported from Bitcoin Core 0.16.2

setnetworkactive (0.16.2 RPC)

blockchain

control

generating

mining

network

rawtransactions

util

wallet

setnetworkactive true|false

Disable/enable all p2p network activity.

Arguments:
1. "state"        (boolean, required) true to enable networking, false to disable