Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: MrKain on June 25, 2013, 07:42:28 AM



Title: getinfo() and the current number of blocks
Post by: MrKain on June 25, 2013, 07:42:28 AM

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




Title: Re: getinfo() and the current number of blocks
Post by: bit_kevin on June 25, 2013, 03:33:17 PM

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.


Title: Re: getinfo() and the current number of blocks
Post by: grue on June 25, 2013, 08:16:14 PM
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