Skip to content

Commit edd9d07

Browse files
committed
Merge #17302: cli: Add "headers" and "verificationprogress" to -getinfo
3187934 cli: Add "headers" and "verificationprogress" to -getinfo (Wladimir J. van der Laan) Pull request description: These values are useful to know the current progress of initial sync, or of catching up, which is arguably the use of a quick `-getinfo` command. ACKs for top commit: MarcoFalke: unsigned ACK 3187934 jonasschnelli: utACK 3187934 jonatack: Tested ACK 3187934 on Debian 4.19.37-5+deb10u2 (2019-08-08) x86_64 GNU/Linux Tree-SHA512: 185180ab426b4db5d99eb208ee88d1606f585361875ba3a92b6c28a74fe181d72ed710c8859b969ba49b1ca7d2385695932b79ff621c7a2a7cedd0df717a99ed
2 parents 471e5f8 + 3187934 commit edd9d07

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)