Post
Topic
Board Development & Technical Discussion
Re: getinfo() and the current number of blocks
by
bit_kevin
on 25/06/2013, 15:33:17 UTC

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.