Skip to content

Commit 0ef9858

Browse files
committed
Documenting pruned, pruneheight and softforks in getblockchaininfo
1 parent 0c89579 commit 0ef9858

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

doc/REST-interface.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ Only supports JSON as output format.
4141
* verificationprogress : (numeric) estimate of verification progress [0..1]
4242
* chainwork : (string) total amount of work in active chain, in hexadecimal
4343
* pruned : (boolean) if the blocks are subject to pruning
44+
* pruneheight : (numeric) heighest block available
45+
* softforks : (array) status of softforks in progress
4446

4547
####Query UTXO set
4648
`GET /rest/getutxos/<checkmempool>/<txid>-<n>/<txid>-<n>/.../<txid>-<n>.<bin|hex|json>`

src/rpcblockchain.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,8 @@ UniValue getblockchaininfo(const UniValue& params, bool fHelp)
594594
" \"difficulty\": xxxxxx, (numeric) the current difficulty\n"
595595
" \"verificationprogress\": xxxx, (numeric) estimate of verification progress [0..1]\n"
596596
" \"chainwork\": \"xxxx\" (string) total amount of work in active chain, in hexadecimal\n"
597+
" \"pruned\": xx, (boolean) if the blocks are subject to pruning\n"
598+
" \"pruneheight\": xxxxxx, (numeric) heighest block available\n"
597599
" \"softforks\": [ (array) status of softforks in progress\n"
598600
" {\n"
599601
" \"id\": \"xxxx\", (string) name of softfork\n"

0 commit comments

Comments
 (0)