-
Notifications
You must be signed in to change notification settings - Fork 37.7k
cli: Add "headers" and "verificationprogress" to -getinfo #17302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Concept ACK.
There is a typo in commit message in "verifcationprogress".
These value are useful to know the current progress of initial sync, or of catching up.
1a2d837
to
3187934
Compare
Thanks, fixed |
unsigned ACK 3187934 |
utACK 3187934 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested ACK 3187934 on Debian 4.19.37-5+deb10u2 (2019-08-08) x86_64 GNU/Linux
$ src/bitcoin-cli -getinfo
{
"version": 199900,
"protocolversion": 70015,
"blocks": 601626,
"headers": 601626,
"verificationprogress": 0.9999914194982424,
"timeoffset": -1,
"connections": 10,
"proxy": "",
"difficulty": 13691480038694.45,
"chain": "main",
"walletversion": 169900,
"balance": 0.00649423,
"keypoololdest": 1551909091,
"keypoolsize": 1000,
"paytxfee": 0.00000000,
"relayfee": 0.00001000,
"warnings": "This is a pre-release test build - use at your own risk - do not use for mining or merchant applications"
}
Tested 3187934 on Linux Mint 19.2:
Exponential formatting of "verificationprogress" seems a bit awkward. |
Yes. But out of scope of this issue as I have no control over formatting as long as we're using JSON here. A progress bar would be nicer I guess. See also #17314. |
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/bitcoin-cli.cpp
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.