Skip to content

Commit 3c923e8

Browse files
committed
Merge pull request #6457
0ef9858 Documenting pruned, pruneheight and softforks in getblockchaininfo (Simon Males) 0c89579 Include pruned state in chaininfo.json (Simon Males)
2 parents dcc495e + 0ef9858 commit 3c923e8

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

doc/REST-interface.md

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

4447
####Query UTXO set
4548
`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)