RPC - Update getblockchaininfo to show BIP-9 progress

Related to dashpay/dash#2435
This commit is contained in:
thephez 2018-12-13 10:44:45 -05:00
parent 63a6f6ce45
commit 5193ae21b1
No known key found for this signature in database
GPG key ID: BBC8A06DBE236099
3 changed files with 27 additions and 2 deletions

View file

@ -102,7 +102,7 @@ These RPCs are all Dash-specific and not found in Bitcoin Core
* [GetBestBlockHash][rpc getbestblockhash]: {{summary_getBestBlockHash}}
* [GetBlock][rpc getblock]: {{summary_getBlock}} {{UPDATED0_13_0}}
* [GetBlockChainInfo][rpc getblockchaininfo]: {{summary_getBlockChainInfo}} {{DASH_UPDATED0_12_3}} {{UPDATED0_12_1}}
* [GetBlockChainInfo][rpc getblockchaininfo]: {{summary_getBlockChainInfo}} {{DASH_UPDATED0_13_0}} {{UPDATED0_12_1}}
* [GetBlockCount][rpc getblockcount]: {{summary_getBlockCount}}
* [GetBlockHash][rpc getblockhash]: {{summary_getBlockHash}}
* [GetBlockHashes][rpc getblockhashes]: {{summary_getBlockHashes}} {{DASH_NEW0_12_1}}

View file

@ -165,6 +165,31 @@ The `getblockchaininfo` RPC {{summary_getBlockChainInfo}}
p: "Optional<br>(0 or 1)"
d: "The bit (0-28) in the block version field used to signal this softfork. Field is only shown when status is `started`"
- n: "→ → →<br>`period`"
t: "numeric<br>(int)"
p: "Optional<br>(0 or 1)"
d: "*Added in Dash Core 0.13.0*<br><br>The window size/period for this softfork. Field is only shown when status is `started`"
- n: "→ → →<br>`threshold`"
t: "numeric<br>(int)"
p: "Optional<br>(0 or 1)"
d: "*Added in Dash Core 0.13.0*<br><br>The threshold for this softfork. Field is only shown when status is `started`"
- n: "→ → →<br>`windowStart`"
t: "numeric<br>(int)"
p: "Optional<br>(0 or 1)"
d: "*Added in Dash Core 0.13.0*<br><br>The starting block height of the current window. Field is only shown when status is `started`"
- n: "→ → →<br>`windowBlocks`"
t: "numeric<br>(int)"
p: "Optional<br>(0 or 1)"
d: "*Added in Dash Core 0.13.0*<br><br>The number of blocks in the current window that had the version bit set for this softfork. Field is only shown when status is `started`"
- n: "→ → →<br>`windowProgress`"
t: "numeric<br>(int)"
p: "Optional<br>(0 or 1)"
d: "*Added in Dash Core 0.13.0*<br><br>The progress (between 0 and 1) for activation of this softfork. Field is only shown when status is `started`"
- n: "→ → →<br>`startTime`"
t: "numeric<br>(int)"
p: "Required<br>(exactly 1)"

View file

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