[Content] - RPC - Update getchaintips

- Add `forkpoint` to result
 - Closes #60
This commit is contained in:
thephez 2018-04-18 18:11:17 -04:00
parent 581500c546
commit 7b8e5ed5ea
No known key found for this signature in database
GPG key ID: BBC8A06DBE236099
3 changed files with 13 additions and 7 deletions

View file

@ -104,7 +104,7 @@ These RPCs are all Dash-specific and not found in Bitcoin Core
* [GetBlockHashes][rpc getblockhashes]: {{summary_getBlockHashes}} {{DASH_NEW0_12_1}} * [GetBlockHashes][rpc getblockhashes]: {{summary_getBlockHashes}} {{DASH_NEW0_12_1}}
* [GetBlockHeader][rpc getblockheader]: {{summary_getBlockHeader}} {{NEW0_12_0}} * [GetBlockHeader][rpc getblockheader]: {{summary_getBlockHeader}} {{NEW0_12_0}}
* [GetBlockHeaders][rpc getblockheaders]: {{summary_getBlockHeaders}} {{DASH_NEW0_12_1}} * [GetBlockHeaders][rpc getblockheaders]: {{summary_getBlockHeaders}} {{DASH_NEW0_12_1}}
* [GetChainTips][rpc getchaintips]: {{summary_getChainTips}} {{DASH_UPDATED0_12_1}} * [GetChainTips][rpc getchaintips]: {{summary_getChainTips}} {{DASH_UPDATED0_12_3}}
* [GetDifficulty][rpc getdifficulty]: {{summary_getDifficulty}} * [GetDifficulty][rpc getdifficulty]: {{summary_getDifficulty}}
* [GetMemPoolAncestors][rpc getmempoolancestors]: {{summary_getMemPoolAncestors}} {{DASH_NEW0_12_3}} {{NEW0_13_0}} * [GetMemPoolAncestors][rpc getmempoolancestors]: {{summary_getMemPoolAncestors}} {{DASH_NEW0_12_3}} {{NEW0_13_0}}
* [GetMemPoolDescendants][rpc getmempooldescendants]: {{summary_getMemPoolDescendants}} {{DASH_NEW0_12_3}} {{NEW0_13_0}} * [GetMemPoolDescendants][rpc getmempooldescendants]: {{summary_getMemPoolDescendants}} {{DASH_NEW0_12_3}} {{NEW0_13_0}}

View file

@ -53,6 +53,11 @@ The `getchaintips` RPC {{summary_getChainTips}}
p: "Required<br>(exactly 1)" p: "Required<br>(exactly 1)"
d: "The number of blocks that are on this chain but not on the main chain. For the local best block chain, this will be `0`; for all other chains, it will be at least `1`" d: "The number of blocks that are on this chain but not on the main chain. For the local best block chain, this will be `0`; for all other chains, it will be at least `1`"
- n: "→ →<br>`forkpoint`"
t: "string (hex)"
p: "Required<br>(exactly 1)"
d: "*Added in Dash Core 0.12.3*<br><br>Block hash of the last common block between this tip and the main chain"
- n: "→ →<br>`status`" - n: "→ →<br>`status`"
t: "string" t: "string"
p: "Required<br>(exactly 1)" p: "Required<br>(exactly 1)"
@ -60,7 +65,7 @@ The `getchaintips` RPC {{summary_getChainTips}}
{% enditemplate %} {% enditemplate %}
*Example from Dash Core 0.12.2* *Example from Dash Core 0.12.3*
{% highlight bash %} {% highlight bash %}
dash-cli -testnet getchaintips dash-cli -testnet getchaintips
@ -69,11 +74,12 @@ dash-cli -testnet getchaintips
{% highlight json %} {% highlight json %}
[ [
{ {
"height": 4655, "height": 110192,
"hash": "00000000629c276241d9526d85297f2675d6edebcc7fd0c39e8f4263d729b8c1", "hash": "000000000c6007f40c3b68a77b0e1319a89c0504ae1b391d071cf49fa7591dee",
"difficulty": 0.9622782802772231, "difficulty": 18.38631407059958,
"chainwork": "000000000000000000000000000000000000000000000000000001f1e286e12a", "chainwork": "000000000000000000000000000000000000000000000000002cbd2546718747",
"branchlen": 0, "branchlen": 0,
"forkpoint": "000000000c6007f40c3b68a77b0e1319a89c0504ae1b391d071cf49fa7591dee",
"status": "active" "status": "active"
} }
] ]

View file

@ -113,7 +113,7 @@ th.tg-sort-header::-moz-selection { background:transparent; }th.tg-sort-header::
<td class="tg-yw4l">Blockchain</td> <td class="tg-yw4l">Blockchain</td>
<td class="tg-yw4l"><a href="#getchaintips">GetChainTips</a></td> <td class="tg-yw4l"><a href="#getchaintips">GetChainTips</a></td>
<td class="tg-baqh">Y</td> <td class="tg-baqh">Y</td>
<td class="tg-baqh"></td> <td class="tg-baqh">Updated in 0.12.3.0</td>
</tr> </tr>
<tr> <tr>
<td class="tg-b7b8">Blockchain</td> <td class="tg-b7b8">Blockchain</td>