Bitcoin Forum
May 08, 2024, 12:36:50 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Copying .bitcoin to a new machine - fail  (Read 1104 times)
bitcoindaddy (OP)
Hero Member
*****
Offline Offline

Activity: 481
Merit: 500


View Profile
November 20, 2012, 04:05:12 PM
Last edit: November 20, 2012, 05:27:59 PM by bitcoindaddy
 #1

I decided it would be fun to try to run the bitcoind client on a Raspberry Pi. Mostly because I wanted to try p2pool and it requires that the client is always running.

So I compiled the latest bitcoind from git on the Raspberry and fired it up - after 24 hours, it was not even close to being done with the block chain.

I then copied the .bitcoin directory contents from another machine (a standard PC) to the Pi and deleted the wallet.dat file so it would create a new one. Well, when bitcoind started up, it started all over from the beginning with the lowest block numbers.

Is there something I need to do on the sending-side before copying the .bitcoin directory to a new PC so I don't have to start over and download and process the whole blockchain?


Edit - I suspect I have to detach the databases first in the client...
Edit - Detaching the databases before copying didn't help.
1715171810
Hero Member
*
Offline Offline

Posts: 1715171810

View Profile Personal Message (Offline)

Ignore
1715171810
Reply with quote  #2

1715171810
Report to moderator
"I'm sure that in 20 years there will either be very large transaction volume or no volume." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715171810
Hero Member
*
Offline Offline

Posts: 1715171810

View Profile Personal Message (Offline)

Ignore
1715171810
Reply with quote  #2

1715171810
Report to moderator
1715171810
Hero Member
*
Offline Offline

Posts: 1715171810

View Profile Personal Message (Offline)

Ignore
1715171810
Reply with quote  #2

1715171810
Report to moderator
1715171810
Hero Member
*
Offline Offline

Posts: 1715171810

View Profile Personal Message (Offline)

Ignore
1715171810
Reply with quote  #2

1715171810
Report to moderator
kjj
Legendary
*
Offline Offline

Activity: 1302
Merit: 1025



View Profile
November 20, 2012, 09:38:33 PM
 #2

If you have a successful detach, and your node is still ignoring the files, you don't have them in the right place.  Double check that your blk*.dat and blkindex.dat files are where they are supposed to be.

17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8
I routinely ignore posters with paid advertising in their sigs.  You should too.
Pieter Wuille
Legendary
*
qt
Offline Offline

Activity: 1072
Merit: 1174


View Profile WWW
November 21, 2012, 07:48:17 PM
 #3

If you compiled the current development version in git, you have a pre-release for 0.8, which uses a completely different database layout compared to older versions. As there is no auto-migration implemented yet, it is expected that it would just start downloading from scratch.

What you can do: move the old blk0001.dat and blk0002.dat to blocks/blk00000.dat and blocks/blk00001.dat, and start bitcoind with -reindex.

Also: don't expect the CPU of a Pi to be fast - the part of the block chain after 193000 (the last checkpoint, after which signature checking is enabled) is dominated by CPU power. It's bound to take many hours on a Pi, running at 100% cpu.

I do Bitcoin stuff.
bitcoindaddy (OP)
Hero Member
*****
Offline Offline

Activity: 481
Merit: 500


View Profile
November 23, 2012, 11:42:34 AM
 #4

If you compiled the current development version in git, you have a pre-release for 0.8, which uses a completely different database layout compared to older versions. As there is no auto-migration implemented yet, it is expected that it would just start downloading from scratch.

What you can do: move the old blk0001.dat and blk0002.dat to blocks/blk00000.dat and blocks/blk00001.dat, and start bitcoind with -reindex.

Also: don't expect the CPU of a Pi to be fast - the part of the block chain after 193000 (the last checkpoint, after which signature checking is enabled) is dominated by CPU power. It's bound to take many hours on a Pi, running at 100% cpu.

I suspect this is the problem. I had tried a bunch of things and no matter what it would start from scratch. Thanks for the tip.
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!