Bitcoin Forum
May 27, 2024, 01:49:07 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Copying instead of downloading the blockchain  (Read 725 times)
RangerK (OP)
Member
**
Offline Offline

Activity: 93
Merit: 10



View Profile WWW
June 25, 2013, 12:56:40 PM
 #1

In the interested of saving time, I tried this recently (on Ubuntu 12.04) and the qt client kept hanging without ever opening.  Am I correct to assume that the blockchain can only be downloaded, not copied?

Cool ---> Who will mine the next 777 Block??? Place your bets at block777.com!!!
bit_kevin
Member
**
Offline Offline

Activity: 64
Merit: 10


btc.com


View Profile WWW
June 25, 2013, 03:28:02 PM
 #2

You can use bootstrap.dat when first start an bitcoind.

FYI:
https://bitcointalk.org/index.php?topic=117982.0
http://eu2.bitcoincharts.com/blockchain/
kjj
Legendary
*
Offline Offline

Activity: 1302
Merit: 1025



View Profile
June 26, 2013, 11:11:27 AM
 #3

It is possible to copy the blockchain around.  At least it was pre-0.8.  I don't see any reason why you wouldn't be able to after leveldb, I just haven't tried it yet.

You just need to make sure that you get the entire chain and index in one shot.  In the BDB days, that meant doing a shutdown-with-detach, then copying all of the block files with the index.

17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8
I routinely ignore posters with paid advertising in their sigs.  You should too.
juhakall
Sr. Member
****
Offline Offline

Activity: 658
Merit: 250


View Profile
June 26, 2013, 11:17:14 AM
 #4

I copied all my *coin blockchains from Debian Linux to FreeBSD. All clients were properly shut down on Linux. None of the newly compiled clients would work on FreeBSD because of database errors, until I removed the copied blockchains and started from scratch. Should the blockchain files be transferable between different operating systems? Can anyone explain why I had to do this?
kjj
Legendary
*
Offline Offline

Activity: 1302
Merit: 1025



View Profile
June 26, 2013, 11:25:33 AM
 #5

I transferred all my *coin clients, including their databases, from Debian Linux to FreeBSD. They were all properly shut down. None of them would work until I removed the databases and started from scratch. Should the database files be transferable between different operating systems?

I have no idea.  It would depend on how the database library is written.  The blockchain files themselves are platform-agnostic: values are written in a screwy byte order and each client is responsible for converting that order to their internal format.

If I had to guess, I'd expect the database files to be similar, and thus be compatible between operating systems, and maybe even between CPUs.  But I don't really know.

When you say they were shut down properly, do you mean the databases were detached too?  Do the altcoins even support that correctly?

17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8
I routinely ignore posters with paid advertising in their sigs.  You should too.
RangerK (OP)
Member
**
Offline Offline

Activity: 93
Merit: 10



View Profile WWW
June 26, 2013, 12:08:13 PM
 #6

I copied all my *coin blockchains from Debian Linux to FreeBSD. All clients were properly shut down on Linux. None of the newly compiled clients would work on FreeBSD because of database errors, until I removed the copied blockchains and started from scratch. Should the blockchain files be transferable between different operating systems? Can anyone explain why I had to do this?

Interestingly, I also tried a move between operating systems.  (Windows XP -> Xubuntu).  Haven't experimented copies within the same OS.

Cool ---> Who will mine the next 777 Block??? Place your bets at block777.com!!!
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!