aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Males <sime@sime.net.au>2015-07-19 14:07:35 +0200
committerSimon Males <sime@sime.net.au>2015-07-19 14:07:35 +0200
commit0ef9858707093053f45469d8f7cef20be4930f64 (patch)
tree8263888fdff7763fd6b9227739ef40218b862083
parent0c895799c86192d035e752449c511187a1e148b8 (diff)
downloadbitcoin-0ef9858707093053f45469d8f7cef20be4930f64.tar.xz
Documenting pruned, pruneheight and softforks in getblockchaininfo
-rw-r--r--doc/REST-interface.md2
-rw-r--r--src/rpcblockchain.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/doc/REST-interface.md b/doc/REST-interface.md
index f3dc9edf37..ac7cd45f70 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 c2de6cb244..f1c5ffe050 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"