Bitcoin Forum
June 21, 2024, 10:23:22 PM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: getinfo() and the current number of blocks  (Read 532 times)
MrKain (OP)
Newbie
*
Offline Offline

Activity: 24
Merit: 0



View Profile
June 25, 2013, 07:42:28 AM
 #1


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


bit_kevin
Member
**
Offline Offline

Activity: 64
Merit: 10


btc.com


View Profile WWW
June 25, 2013, 03:33:17 PM
 #2


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.
grue
Legendary
*
Offline Offline

Activity: 2058
Merit: 1431



View Profile
June 25, 2013, 08: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

It is pitch black. You are likely to be eaten by a grue.

Adblock for annoying signature ads | Enhanced Merit UI
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!