Skip to content

Commit 3187934

Browse files
committed
cli: Add "headers" and "verificationprogress" to -getinfo
These value are useful to know the current progress of initial sync, or of catching up.
1 parent 6a97e8a commit 3187934

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/bitcoin-cli.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,8 @@ class GetinfoRequestHandler: public BaseRequestHandler
258258
result.pushKV("version", batch[ID_NETWORKINFO]["result"]["version"]);
259259
result.pushKV("protocolversion", batch[ID_NETWORKINFO]["result"]["protocolversion"]);
260260
result.pushKV("blocks", batch[ID_BLOCKCHAININFO]["result"]["blocks"]);
261+
result.pushKV("headers", batch[ID_BLOCKCHAININFO]["result"]["headers"]);
262+
result.pushKV("verificationprogress", batch[ID_BLOCKCHAININFO]["result"]["verificationprogress"]);
261263
result.pushKV("timeoffset", batch[ID_NETWORKINFO]["result"]["timeoffset"]);
262264
result.pushKV("connections", batch[ID_NETWORKINFO]["result"]["connections"]);
263265
result.pushKV("proxy", batch[ID_NETWORKINFO]["result"]["networks"][0]["proxy"]);

0 commit comments

Comments
 (0)