Bitcoin Forum
April 26, 2024, 11:55:28 PM *
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 525 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


1714175728
Hero Member
*
Offline Offline

Posts: 1714175728

View Profile Personal Message (Offline)

Ignore
1714175728
Reply with quote  #2

1714175728
Report to moderator
1714175728
Hero Member
*
Offline Offline

Posts: 1714175728

View Profile Personal Message (Offline)

Ignore
1714175728
Reply with quote  #2

1714175728
Report to moderator
1714175728
Hero Member
*
Offline Offline

Posts: 1714175728

View Profile Personal Message (Offline)

Ignore
1714175728
Reply with quote  #2

1714175728
Report to moderator
In order to get the maximum amount of activity points possible, you just need to post once per day on average. Skipping days is OK as long as you maintain the average.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
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!