Updated GetMiningInfo 0.14.1

This commit is contained in:
Michael Rotarius 2017-05-04 21:20:33 +02:00
parent 4813ee834e
commit 7e6fbf230a

View file

@ -66,12 +66,12 @@ The `getmininginfo` RPC {{summary_getMiningInfo}}
- n: "→<br>`testnet`" - n: "→<br>`testnet`"
t: "bool" t: "bool"
p: "Required<br>(exactly 1)" p: "Required<br>(exactly 1)"
d: "Set to `true` if this node is running on testnet. Set to `false` if this node is on mainnet or a regtest" d: "*Removed in Bitcoin Core 0.14.0*<br><br>Set to `true` if this node is running on testnet. Set to `false` if this node is on mainnet or a regtest"
- n: "→<br>`chain`" - n: "→<br>`chain`"
t: "string" t: "string"
p: "Required<br>(exactly 1)" p: "Required<br>(exactly 1)"
d: "*Added in Bitcoin Core 0.10.0*<br><br>Set to `main` for mainnet, `test` for testnet, and `regtest` for regtest" d: "Set to `main` for mainnet, `test` for testnet, and `regtest` for regtest"
- n: "→<br>`generate`" - n: "→<br>`generate`"
t: "bool" t: "bool"
@ -85,25 +85,25 @@ The `getmininginfo` RPC {{summary_getMiningInfo}}
{% enditemplate %} {% enditemplate %}
*Example from Bitcoin Core 0.13.1* *Example from Bitcoin Core 0.14.1*
{% highlight bash %} {% highlight bash %}
bitcoin-cli -testnet getmininginfo bitcoin-cli getmininginfo
{% endhighlight %} {% endhighlight %}
Result: Result:
{% highlight json %} {% highlight json %}
{ {
"blocks" : 313168, "blocks": 464545,
"currentblocksize" : 1819, "currentblocksize": 0,
"currentblocktx" : 3, "currentblockweight": 0,
"difficulty" : 1.00000000, "currentblocktx": 0,
"errors" : "", "difficulty": 521974519553.6282,
"networkhashps" : 5699977416637, "errors": "",
"pooledtx" : 8, "networkhashps": 4.126888339085874e+18,
"testnet" : true, "pooledtx": 31241,
"chain" : "test", "chain": "main"
} }
{% endhighlight %} {% endhighlight %}