3
I need to get some values to find how updated my bitcoind client is.
For example, I would like the GUI to tell me:
- If it is up to date. If not, show blocks/total blocks
- How many blocks have been downloaded
- The time that the last received block was generated.
Are there commands available in the JSON API to get this information? Or how else can I achieve this?
Regards
I was under the impression that version 5+ of the client (bitcoin-qt) offers all these capabilities. Am I wrong? – ripper234 – 2012-03-09T12:37:42.907
The client can't possibly tell if it's up to date in terms of blocks. The only way the client can know a block exists is to validate it. The only way to validate a block is to have it already. The client has no other mechanism to become convinced that it's not already current. (The exception would be if there was a checkpoint ahead of it.) – David Schwartz – 2012-03-10T05:44:27.663
How does Bitcoin-QR know it is "out of sync"? And it also says something like ~24 block(s) remaining. – kermit – 2012-10-28T14:39:26.763