Bitcoin Forum
May 07, 2024, 03:44:39 AM *
News: Latest Bitcoin Core release: 27.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 1629 times)
deepceleron (OP)
Legendary
*
Offline Offline

Activity: 1512
Merit: 1028



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...
1715053479
Hero Member
*
Offline Offline

Posts: 1715053479

View Profile Personal Message (Offline)

Ignore
1715053479
Reply with quote  #2

1715053479
Report to moderator
1715053479
Hero Member
*
Offline Offline

Posts: 1715053479

View Profile Personal Message (Offline)

Ignore
1715053479
Reply with quote  #2

1715053479
Report to moderator
1715053479
Hero Member
*
Offline Offline

Posts: 1715053479

View Profile Personal Message (Offline)

Ignore
1715053479
Reply with quote  #2

1715053479
Report to moderator
Even in the event that an attacker gains more than 50% of the network's computational power, only transactions sent by the attacker could be reversed or double-spent. The network would not be destroyed.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715053479
Hero Member
*
Offline Offline

Posts: 1715053479

View Profile Personal Message (Offline)

Ignore
1715053479
Reply with quote  #2

1715053479
Report to moderator
1715053479
Hero Member
*
Offline Offline

Posts: 1715053479

View Profile Personal Message (Offline)

Ignore
1715053479
Reply with quote  #2

1715053479
Report to moderator
1715053479
Hero Member
*
Offline Offline

Posts: 1715053479

View Profile Personal Message (Offline)

Ignore
1715053479
Reply with quote  #2

1715053479
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: 1028



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!