Author

Topic: getinfo() and the current number of blocks (Read 545 times)

legendary
Activity: 2058
Merit: 1431
June 25, 2013, 04:16:14 PM
#3
You can use the debug window. Be careful though, it's not very accurate if your client is already up to sync.
https://i.minus.com/iRswHwZDJVyxU.png
member
Activity: 64
Merit: 10
btc.com

calling getinfo will return the number of blocks my bitcoind has
knowledge of/processed/indexed , - however is there a way of knowing
how many blocks it needs to know of to be in sync ?

At present I manually check the number of blocks returned by getinfo
with what blockexplorer.com shows

MK

Bitcoin generate 2016 blocks in two weeks. You can calc block's height by time.
Usually it's a litter short than 2 weeks.
newbie
Activity: 24
Merit: 0

calling getinfo will return the number of blocks my bitcoind has
knowledge of/processed/indexed , - however is there a way of knowing
how many blocks it needs to know of to be in sync ?

At present I manually check the number of blocks returned by getinfo
with what blockexplorer.com shows

MK


Jump to: