Added SetNetworkActive rpc command

This commit is contained in:
Michael Rotarius 2017-05-04 21:08:38 +02:00
parent 0a6d622bd0
commit ac67275f50

View file

@ -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<br>(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<br>(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 %}