diff --git a/_includes/devdoc/bitcoin-core/rpcs/rpcs/setnetworkactive.md b/_includes/devdoc/bitcoin-core/rpcs/rpcs/setnetworkactive.md new file mode 100644 index 00000000..f9a0c6a6 --- /dev/null +++ b/_includes/devdoc/bitcoin-core/rpcs/rpcs/setnetworkactive.md @@ -0,0 +1,48 @@ +{% comment %} +This file is licensed under the MIT License (MIT) available on +http://opensource.org/licenses/MIT. +{% endcomment %} +{% assign filename="_includes/devdoc/bitcoin-core/rpcs/rpcs/setnetworkactive.md" %} + +##### SetNetworkActive +{% include helpers/subhead-links.md %} + +{% assign summary_setNetworkActive="disables/enables all P2P network activity." %} + +{% autocrossref %} + +*Added in Bitcoin Core 0.14.0* + +The `setnetworkactive` RPC {{summary_setNetworkActive}} + +*Parameter #1---whether to disable or enable all P2P network activity* + +{% itemplate ntpd1 %} +- n: "Activate" + t: "bool" + p: "Required
(exactly 1)" + d: "Set to `true` to enable all P2P network activity. Set to `false` to disable all P2P network activity" + +{% enditemplate %} + +*Result---`null` plus error on failed remove* + +{% itemplate ntpd1 %} +- n: "`result`" + t: "null" + p: "Required
(exactly 1)" + d: "JSON `null`. The JSON-RPC error field will be set only if you entered an invalid parameter" + +{% enditemplate %} + +*Examples from Bitcoin Core 0.14.1* + +{% highlight bash %} +bitcoin-cli setnetworkactive true +{% endhighlight %} + +Result (no output from `bitcoin-cli` because result is set to `null`). + +*See also* + +{% endautocrossref %}