From 5193ae21b1622e33edda594306b25bd7f4854703 Mon Sep 17 00:00:00 2001 From: thephez Date: Thu, 13 Dec 2018 10:44:45 -0500 Subject: [PATCH] RPC - Update getblockchaininfo to show BIP-9 progress Related to dashpay/dash#2435 --- .../devdoc/dash-core/rpcs/quick-reference.md | 2 +- .../dash-core/rpcs/rpcs/getblockchaininfo.md | 25 +++++++++++++++++++ _includes/layout/base/rpc-table.html | 2 +- 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/_includes/devdoc/dash-core/rpcs/quick-reference.md b/_includes/devdoc/dash-core/rpcs/quick-reference.md index da739783..cff24c48 100644 --- a/_includes/devdoc/dash-core/rpcs/quick-reference.md +++ b/_includes/devdoc/dash-core/rpcs/quick-reference.md @@ -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}} diff --git a/_includes/devdoc/dash-core/rpcs/rpcs/getblockchaininfo.md b/_includes/devdoc/dash-core/rpcs/rpcs/getblockchaininfo.md index 4e90fc8b..1d4e1f12 100644 --- a/_includes/devdoc/dash-core/rpcs/rpcs/getblockchaininfo.md +++ b/_includes/devdoc/dash-core/rpcs/rpcs/getblockchaininfo.md @@ -165,6 +165,31 @@ The `getblockchaininfo` RPC {{summary_getBlockChainInfo}} p: "Optional
(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: "→ → →
`period`" + t: "numeric
(int)" + p: "Optional
(0 or 1)" + d: "*Added in Dash Core 0.13.0*

The window size/period for this softfork. Field is only shown when status is `started`" + +- n: "→ → →
`threshold`" + t: "numeric
(int)" + p: "Optional
(0 or 1)" + d: "*Added in Dash Core 0.13.0*

The threshold for this softfork. Field is only shown when status is `started`" + +- n: "→ → →
`windowStart`" + t: "numeric
(int)" + p: "Optional
(0 or 1)" + d: "*Added in Dash Core 0.13.0*

The starting block height of the current window. Field is only shown when status is `started`" + +- n: "→ → →
`windowBlocks`" + t: "numeric
(int)" + p: "Optional
(0 or 1)" + d: "*Added in Dash Core 0.13.0*

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: "→ → →
`windowProgress`" + t: "numeric
(int)" + p: "Optional
(0 or 1)" + d: "*Added in Dash Core 0.13.0*

The progress (between 0 and 1) for activation of this softfork. Field is only shown when status is `started`" + - n: "→ → →
`startTime`" t: "numeric
(int)" p: "Required
(exactly 1)" diff --git a/_includes/layout/base/rpc-table.html b/_includes/layout/base/rpc-table.html index 2537d83a..b11f86eb 100644 --- a/_includes/layout/base/rpc-table.html +++ b/_includes/layout/base/rpc-table.html @@ -77,7 +77,7 @@ th.tg-sort-header::-moz-selection { background:transparent; }th.tg-sort-header:: Blockchain GetBlockChainInfo Y - Updated in 0.12.3.0 + Updated in 0.13.0.0 Blockchain