Updated GetBlockChainInfo 0.14.1

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

View file

@ -36,7 +36,7 @@ The `getblockchaininfo` RPC {{summary_getBlockChainInfo}}
- n: "→<br>`headers`" - n: "→<br>`headers`"
t: "number (int)" t: "number (int)"
p: "Required<br>(exactly 1)" p: "Required<br>(exactly 1)"
d: "*Added in Bitcoin Core 0.10.0*<br><br>The number of validated headers in the local best headers chain. For a new node with just the hardcoded genesis block, this will be zero. This number may be higher than the number of *blocks*" d: "The number of validated headers in the local best headers chain. For a new node with just the hardcoded genesis block, this will be zero. This number may be higher than the number of *blocks*"
- n: "→<br>`bestblockhash`" - n: "→<br>`bestblockhash`"
t: "string (hex)" t: "string (hex)"
@ -173,12 +173,17 @@ The `getblockchaininfo` RPC {{summary_getBlockChainInfo}}
p: "Required<br>(exactly 1)" p: "Required<br>(exactly 1)"
d: "The Unix epoch time at which the deployment is considered failed if not yet locked in" d: "The Unix epoch time at which the deployment is considered failed if not yet locked in"
- n: "→ → →<br>`since`"
t: "numeric<br>(int)"
p: "Required<br>(exactly 1)"
d: "*Added in Bitcoin Core 0.14.0*<br><br>The height of the first block to which the status applies"
{% enditemplate %} {% enditemplate %}
*Example from Bitcoin Core 0.13.1* *Example from Bitcoin Core 0.14.1*
{% highlight bash %} {% highlight bash %}
bitcoin-cli -testnet getblockchaininfo bitcoin-cli getblockchaininfo
{% endhighlight %} {% endhighlight %}
Result: Result:
@ -186,13 +191,13 @@ Result:
{% highlight json %} {% highlight json %}
{ {
"chain": "main", "chain": "main",
"blocks": 438737, "blocks": 464562,
"headers": 438740, "headers": 464562,
"bestblockhash": "0000000000000000038c4b27ae0b591135bde8703ef53f6fa9aa5ec5f07db5a1", "bestblockhash": "00000000000000000085bd56990c579a36bade6ea427646612f13476edb30ceb",
"difficulty": 254620187304.0614, "difficulty": 521974519553.6282,
"mediantime": 1479054813, "mediantime": 1493758169,
"verificationprogress": 0.9999893624230526, "verificationprogress": 0.999989733170878,
"chainwork": "0000000000000000000000000000000000000000002e732c9db1d0bd82476ae6", "chainwork": "00000000000000000000000000000000000000000052c26f32ffa22706efd28c",
"pruned": false, "pruned": false,
"softforks": [ "softforks": [
{ {
@ -221,15 +226,19 @@ Result:
"csv": { "csv": {
"status": "active", "status": "active",
"startTime": 1462060800, "startTime": 1462060800,
"timeout": 1493596800 "timeout": 1493596800,
"since": 419328
}, },
"segwit": { "segwit": {
"status": "defined", "status": "started",
"bit": 1,
"startTime": 1479168000, "startTime": 1479168000,
"timeout": 1510704000 "timeout": 1510704000,
"since": 439488
} }
} }
} }
{% endhighlight %} {% endhighlight %}
*See also* *See also*