From ac67275f50fe31cbcf8639a86101fc68f4b262de Mon Sep 17 00:00:00 2001 From: Michael Rotarius Date: Thu, 4 May 2017 21:08:38 +0200 Subject: [PATCH] Added SetNetworkActive rpc command --- .../rpcs/rpcs/setnetworkactive.md | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 _includes/devdoc/bitcoin-core/rpcs/rpcs/setnetworkactive.md 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 %}