Bitcoin Forum
May 08, 2024, 05:16:50 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: getinfo() and the current number of blocks  (Read 527 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


1715145410
Hero Member
*
Offline Offline

Posts: 1715145410

View Profile Personal Message (Offline)

Ignore
1715145410
Reply with quote  #2

1715145410
Report to moderator
1715145410
Hero Member
*
Offline Offline

Posts: 1715145410

View Profile Personal Message (Offline)

Ignore
1715145410
Reply with quote  #2

1715145410
Report to moderator
Make sure you back up your wallet regularly! Unlike a bank account, nobody can help you if you lose access to your BTC.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715145410
Hero Member
*
Offline Offline

Posts: 1715145410

View Profile Personal Message (Offline)

Ignore
1715145410
Reply with quote  #2

1715145410
Report to moderator
1715145410
Hero Member
*
Offline Offline

Posts: 1715145410

View Profile Personal Message (Offline)

Ignore
1715145410
Reply with quote  #2

1715145410
Report to moderator
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!