mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 09:46:12 +00:00
[Content] - RPC - Update getchaintips
- Add `forkpoint` to result - Closes #60
This commit is contained in:
parent
581500c546
commit
7b8e5ed5ea
3 changed files with 13 additions and 7 deletions
|
@ -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}}
|
||||
* [GetBlockHeader][rpc getblockheader]: {{summary_getBlockHeader}} {{NEW0_12_0}}
|
||||
* [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}}
|
||||
* [GetMemPoolAncestors][rpc getmempoolancestors]: {{summary_getMemPoolAncestors}} {{DASH_NEW0_12_3}} {{NEW0_13_0}}
|
||||
* [GetMemPoolDescendants][rpc getmempooldescendants]: {{summary_getMemPoolDescendants}} {{DASH_NEW0_12_3}} {{NEW0_13_0}}
|
||||
|
|
|
@ -53,6 +53,11 @@ The `getchaintips` RPC {{summary_getChainTips}}
|
|||
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`"
|
||||
|
||||
- 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`"
|
||||
t: "string"
|
||||
p: "Required<br>(exactly 1)"
|
||||
|
@ -60,7 +65,7 @@ The `getchaintips` RPC {{summary_getChainTips}}
|
|||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Dash Core 0.12.2*
|
||||
*Example from Dash Core 0.12.3*
|
||||
|
||||
{% highlight bash %}
|
||||
dash-cli -testnet getchaintips
|
||||
|
@ -69,11 +74,12 @@ dash-cli -testnet getchaintips
|
|||
{% highlight json %}
|
||||
[
|
||||
{
|
||||
"height": 4655,
|
||||
"hash": "00000000629c276241d9526d85297f2675d6edebcc7fd0c39e8f4263d729b8c1",
|
||||
"difficulty": 0.9622782802772231,
|
||||
"chainwork": "000000000000000000000000000000000000000000000000000001f1e286e12a",
|
||||
"height": 110192,
|
||||
"hash": "000000000c6007f40c3b68a77b0e1319a89c0504ae1b391d071cf49fa7591dee",
|
||||
"difficulty": 18.38631407059958,
|
||||
"chainwork": "000000000000000000000000000000000000000000000000002cbd2546718747",
|
||||
"branchlen": 0,
|
||||
"forkpoint": "000000000c6007f40c3b68a77b0e1319a89c0504ae1b391d071cf49fa7591dee",
|
||||
"status": "active"
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue