Bitcoin Forum
July 07, 2024, 05:17:46 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Downloading block risks forking?  (Read 860 times)
chufchuf (OP)
Full Member
***
Offline Offline

Activity: 205
Merit: 100


View Profile
October 09, 2012, 04:51:11 AM
 #1

If you download blocks from a client server site like bitcoincharts instead of waiting for the bitcoin client to update through peer to peer, what exactly are the risks? Can the bitcoin client belong to a bitcoin fork and can the coins in the wallet become worthless?
Stephen Gornick
Legendary
*
Offline Offline

Activity: 2506
Merit: 1010


View Profile
October 09, 2012, 05:31:52 AM
 #2

If you download blocks from a client server site like bitcoincharts instead of waiting for the bitcoin client to update through peer to peer, what exactly are the risks? Can the bitcoin client belong to a bitcoin fork and can the coins in the wallet become worthless?

This was addressed here:

How can one download the initial Blockchain data files securely?
 - http://bitcoin.stackexchange.com/questions/3551

The problem is that the client doesn't validate each block on startup, so unless the client downloads the blockchain from the P2P network blockchain, you are exposing yourself to the risk where you have invalid data in your data files.  If a manual download was offered with the intention to defraud, this could make you vulnerable to a double spend attack against you that could be successful.

With the version 0.7 client, -loadblock=  is now available and with that you can manually download the blockchain data files, but instead of using them directly you can load the blocks from the manually downloaded data files.  Thus the blockchain is loaded securely and as fast as your system can go.  There is no security risks as long as after the load is done you let the client finish the last bit of catching up to protect against the chance that the longest chain in the manual download had something other than the current longest bitcoin blockchain.

[Edited for readability]

Unichange.me

            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █


jgarzik
Legendary
*
Offline Offline

Activity: 1596
Merit: 1097


View Profile
October 09, 2012, 05:34:07 AM
 #3

With the version 0.7 client, -loadblock=  is now available and with that you can securely download the blockchain data files, but instead of using them directly you can load the blocks from them and thus the blockchain is loaded as fast as your system can go, and there is no security risks as long as after the load is done you let the client finish the last bit of catching up (e.g., in case the data files had the longest chain as something other than the current longest bitcoin blockchain.)

Correct.  -loadblock=FILE is the answer for the current client (0.7 or later).  That imports and validates blocks from the given file(s) in the same manner as the Initial Block Download (IBD) performed over the network.


Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
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!