mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 09:46:12 +00:00
Added SetNetworkActive rpc command
This commit is contained in:
parent
0a6d622bd0
commit
ac67275f50
1 changed files with 48 additions and 0 deletions
48
_includes/devdoc/bitcoin-core/rpcs/rpcs/setnetworkactive.md
Normal file
48
_includes/devdoc/bitcoin-core/rpcs/rpcs/setnetworkactive.md
Normal 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 %}
|
Loading…
Add table
Add a link
Reference in a new issue