diff options
| author | Simon Males <[email protected]> | 2015-07-19 14:07:35 +0200 |
|---|---|---|
| committer | Simon Males <[email protected]> | 2015-07-19 14:07:35 +0200 |
| commit | 0ef9858707093053f45469d8f7cef20be4930f64 (patch) | |
| tree | 8263888fdff7763fd6b9227739ef40218b862083 | |
| parent | Include pruned state in chaininfo.json (diff) | |
| download | discoin-0ef9858707093053f45469d8f7cef20be4930f64.tar.xz discoin-0ef9858707093053f45469d8f7cef20be4930f64.zip | |
Documenting pruned, pruneheight and softforks in getblockchaininfo
| -rw-r--r-- | doc/REST-interface.md | 2 | ||||
| -rw-r--r-- | src/rpcblockchain.cpp | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/doc/REST-interface.md b/doc/REST-interface.md index f3dc9edf3..ac7cd45f7 100644 --- a/doc/REST-interface.md +++ b/doc/REST-interface.md @@ -41,6 +41,8 @@ Only supports JSON as output format. * verificationprogress : (numeric) estimate of verification progress [0..1] * chainwork : (string) total amount of work in active chain, in hexadecimal * pruned : (boolean) if the blocks are subject to pruning +* pruneheight : (numeric) heighest block available +* softforks : (array) status of softforks in progress ####Query UTXO set `GET /rest/getutxos/<checkmempool>/<txid>-<n>/<txid>-<n>/.../<txid>-<n>.<bin|hex|json>` diff --git a/src/rpcblockchain.cpp b/src/rpcblockchain.cpp index c2de6cb24..f1c5ffe05 100644 --- a/src/rpcblockchain.cpp +++ b/src/rpcblockchain.cpp @@ -594,6 +594,8 @@ UniValue getblockchaininfo(const UniValue& params, bool fHelp) " \"difficulty\": xxxxxx, (numeric) the current difficulty\n" " \"verificationprogress\": xxxx, (numeric) estimate of verification progress [0..1]\n" " \"chainwork\": \"xxxx\" (string) total amount of work in active chain, in hexadecimal\n" + " \"pruned\": xx, (boolean) if the blocks are subject to pruning\n" + " \"pruneheight\": xxxxxx, (numeric) heighest block available\n" " \"softforks\": [ (array) status of softforks in progress\n" " {\n" " \"id\": \"xxxx\", (string) name of softfork\n" |