Bitcoin Forum
April 19, 2024, 12:08:22 PM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Odd bug, Bitcoin-qt progress bar uses checkpoint 140700 instead of current block  (Read 1627 times)
deepceleron (OP)
Legendary
*
Offline Offline

Activity: 1512
Merit: 1025



View Profile WWW
February 10, 2012, 08:21:58 AM
Last edit: October 25, 2013, 10:42:25 AM by deepceleron
 #1

I'm running additional Bitcoin installs, and am having them connect only to my main Bitcoin that is on the net with the bitcoin.conf option:

connect=192.168.1.xx:8333

Bitcoin doesn't seem to be able to determine the current blockchain height/block number though, it looks like it is just using the checkpoint in the code.
After it passes block 140700, the progress bar completely disappears, even though it is still downloading blocks.

How does Bitcoin determine the current block, and why can't it get it from my local node running 0.5.2?

Verified in 0.5.2 and 0.6rc1.

Unrelated: It's now four hours for a core 2 quad to process the blockchain off a local connection, and it really starts bogging down around block 120000... I wonder if the biggest part of this isn't the database indexing.

I also realized that we have added 200MB to the blockchain in two months, the blk0001.dat is now about 1GB. At 2GB it may start causing problems for some users, but at 4GB, real big problems, as that is the file size limit for FAT32 systems. Time to start planning for multiple databases for storing the blockchain before this happens.
Another line so the above doesn't look like a sig...
1713528502
Hero Member
*
Offline Offline

Posts: 1713528502

View Profile Personal Message (Offline)

Ignore
1713528502
Reply with quote  #2

1713528502
Report to moderator
It is a common myth that Bitcoin is ruled by a majority of miners. This is not true. Bitcoin miners "vote" on the ordering of transactions, but that's all they do. They can't vote to change the network rules.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713528502
Hero Member
*
Offline Offline

Posts: 1713528502

View Profile Personal Message (Offline)

Ignore
1713528502
Reply with quote  #2

1713528502
Report to moderator
gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4158
Merit: 8382



View Profile WWW
February 10, 2012, 02:19:29 PM
 #2

How does Bitcoin determine the current block, and why can't it get it from my local node running 0.5.2?

It's not a bug, its a feature.

The client hears about it in the version messages, but it can't just trust it or some trouble maker will claim that the height is ten trillion. So, IIRC it takes a median and won't provide one if you only have a few peers.

If it doesn't have an estimate from the peers it uses the highest checkpoint.
SomeoneWeird
Hero Member
*****
Offline Offline

Activity: 700
Merit: 500


View Profile
February 10, 2012, 02:21:33 PM
 #3

How does Bitcoin determine the current block, and why can't it get it from my local node running 0.5.2?

It's not a bug, its a feature.


lmao
btc_artist
Full Member
***
Offline Offline

Activity: 154
Merit: 101

Bitcoin!


View Profile WWW
February 10, 2012, 02:53:56 PM
 #4

How does Bitcoin determine the current block, and why can't it get it from my local node running 0.5.2?

It's not a bug, its a feature.


lmao
Why are you laughing?  gmaxwell gave a good explanation.

BTC: 1CDCLDBHbAzHyYUkk1wYHPYmrtDZNhk8zf
LTC: LMS7SqZJnqzxo76iDSEua33WCyYZdjaQoE
gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4158
Merit: 8382



View Profile WWW
February 10, 2012, 04:52:07 PM
 #5

I also realized that we have added 200MB to the blockchain in two months, the blk0001.dat is now about 1GB. At 2GB it may start causing problems for some users

Sorry, Missed this part the first time. The file will automatically split. Thus the 0001. Smiley



deepceleron (OP)
Legendary
*
Offline Offline

Activity: 1512
Merit: 1025



View Profile WWW
February 10, 2012, 05:50:54 PM
 #6

How does Bitcoin determine the current block, and why can't it get it from my local node running 0.5.2?

It's not a bug, its a feature.

The client hears about it in the version messages, but it can't just trust it or some trouble maker will claim that the height is ten trillion. So, IIRC it takes a median and won't provide one if you only have a few peers.

If it doesn't have an estimate from the peers it uses the highest checkpoint.


That sounds like a bugfix that was put in 0.6, IIRC. I might have to bust out zee code and see how it works, though it may be a lot longer for me to understand it than for the person who wrote it to tell me.
gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4158
Merit: 8382



View Profile WWW
February 11, 2012, 12:16:33 AM
 #7

That sounds like a bugfix that was put in 0.6, IIRC. I might have to bust out zee code and see how it works, though it may be a lot longer for me to understand it than for the person who wrote it to tell me.

Nope.
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!