Bitcoin Forum
April 16, 2024, 08:04:07 PM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to Copy Block Chain? (Mac OS X)  (Read 5223 times)
forbun (OP)
Member
**
Offline Offline

Activity: 107
Merit: 10


View Profile WWW
June 19, 2011, 11:59:43 AM
 #1

I have a copy of the block chain on my computer. My friend, who wants to start using Bitcoin, doesn't have the block chain yet. How do I copy the block chain from my computer to his, so that he doesn't have to re-download the whole thing?

What name would you give to the smallest unit of bitcoin (0.00000001)? sat. What name would you give to 100 sats? bit. 1 bit = 1 uBTC. 1,000,000 bits = 1 BTC. It's bits
The block chain is the main innovation of Bitcoin. It is the first distributed timestamping system.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713297847
Hero Member
*
Offline Offline

Posts: 1713297847

View Profile Personal Message (Offline)

Ignore
1713297847
Reply with quote  #2

1713297847
Report to moderator
willphase
Hero Member
*****
Offline Offline

Activity: 767
Merit: 500


View Profile
June 19, 2011, 12:02:46 PM
 #2

I have a copy of the block chain on my computer. My friend, who wants to start using Bitcoin, doesn't have the block chain yet. How do I copy the block chain from my computer to his, so that he doesn't have to re-download the whole thing?

EITHER: give your IP address to your friend and he starts his bitcoin with the -connect=YOURIP and it will download from your client.  Probably only a better option if you are link local to your friend.

OR: copy the bitcoin block datafile from his machine to yours.  (it's in %appdata%\bitcoin)

OR: in the time you spend writing a post on the forum, reading the replies, and doing what they say, he could probably just download the blockchain himself.

Will

forbun (OP)
Member
**
Offline Offline

Activity: 107
Merit: 10


View Profile WWW
June 19, 2011, 12:37:38 PM
 #3

Re-downloading the entire block chain takes an eternity, at least here in Vietnam (where we are currently located).

I copied the block chain files from the data directory, but this does not work.

Bitcoin gives an error on launch:

Code:
EXCEPTION: 11DbException       
Db::open: Invalid argument       
bitcoin in AppInit()     

When I click OK, I get this:

Code:
EXCEPTION: 11DbException       
Db::open: Invalid argument       
bitcoin in CMyApp::OnUnhandledException()     

Bitcoin then crashes.

What name would you give to the smallest unit of bitcoin (0.00000001)? sat. What name would you give to 100 sats? bit. 1 bit = 1 uBTC. 1,000,000 bits = 1 BTC. It's bits
forbun (OP)
Member
**
Offline Offline

Activity: 107
Merit: 10


View Profile WWW
June 19, 2011, 12:38:57 PM
 #4

BTW, the files I copied are:

blkindex.dat

blk0001.dat

Is this sufficient?

What name would you give to the smallest unit of bitcoin (0.00000001)? sat. What name would you give to 100 sats? bit. 1 bit = 1 uBTC. 1,000,000 bits = 1 BTC. It's bits
willphase
Hero Member
*****
Offline Offline

Activity: 767
Merit: 500


View Profile
June 19, 2011, 01:04:58 PM
 #5

BTW, the files I copied are:

blkindex.dat

blk0001.dat

Is this sufficient?

you need blk*.dat.  You might also want to delete the log/* directory if the client had previously already started downloading blocks.

Also, if your friend has a wallet already, you will want to start bitcoin with the -rescan option to import transactions from the block chain into his wallet balance.

Will

forbun (OP)
Member
**
Offline Offline

Activity: 107
Merit: 10


View Profile WWW
June 19, 2011, 01:24:14 PM
 #6

There are no other blk*.dat files. Is this ok?

On Mac, there is no log/ directory, but there is database/, as well as 2 .log files:

db.log
debug.log

I tried deleting (moving) these files as well, but Bitcoin still crashes.

What name would you give to the smallest unit of bitcoin (0.00000001)? sat. What name would you give to 100 sats? bit. 1 bit = 1 uBTC. 1,000,000 bits = 1 BTC. It's bits
willphase
Hero Member
*****
Offline Offline

Activity: 767
Merit: 500


View Profile
June 19, 2011, 01:31:07 PM
 #7

There are no other blk*.dat files. Is this ok?

On Mac, there is no log/ directory, but there is database/, as well as 2 .log files:

db.log
debug.log

I tried deleting (moving) these files as well, but Bitcoin still crashes.

are you close to each other?  If so - the second option might be best, especially if you're on the same network.

Find out your IP by going to www.whatismyip.com and make sure inbound port 8333 is set up, then just give this to your friend and get them to start bitcoin with the -connect=YOURIP.  Then at least the traffic will just download within Vietnam.

Otherwise, make sure your friend deletes all the files (except wallet.dat, if he has bitcoins already) then copies your blk*.dat files into the bitcoin configuration directory.

Will

Rob P.
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile WWW
June 19, 2011, 03:47:36 PM
 #8

FWIW:  If you don't download the blockchain through your client, your client will not verify it.  You're better off to use the -connect method offered by the other poster.

--

If you like what I've written here, consider tipping the messenger:
1GZu4CtHa6ai8iWoWiVFxV5VVoNte4SkoG

If you don't like what I've written, send me a Tip and I'll stop talking.
forbun (OP)
Member
**
Offline Offline

Activity: 107
Merit: 10


View Profile WWW
June 25, 2011, 04:55:51 PM
 #9

If I use -rescan, will the Bitcoin client verify it?

What name would you give to the smallest unit of bitcoin (0.00000001)? sat. What name would you give to 100 sats? bit. 1 bit = 1 uBTC. 1,000,000 bits = 1 BTC. It's bits
willphase
Hero Member
*****
Offline Offline

Activity: 767
Merit: 500


View Profile
June 25, 2011, 09:53:32 PM
 #10

If I use -rescan, will the Bitcoin client verify it?

no -rescan doesn't verify the hashes link together or that the block is valid (e.g. right difficulty, valid generation transactions etc etc) on the block chain, it just looks through each block for transactions that match the keys in your wallet.

Will

Maged
Legendary
*
Offline Offline

Activity: 1204
Merit: 1015


View Profile
June 26, 2011, 05:32:08 AM
 #11

Be sure to quit out of your bitcoin client before making the copy on your end. Same thing on the receiving machine.

sahana
Newbie
*
Offline Offline

Activity: 49
Merit: 0


View Profile
March 07, 2014, 04:08:40 AM
 #12

Quote
Find out your IP by going to www.whatismyip.com

There is a similar ip search site called IP-Details.com to check our External ip address. Here it display IP address, ISP, Location, Country and so on,...
shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1499


No I dont escrow anymore.


View Profile WWW
March 07, 2014, 01:57:29 PM
 #13

Quote
Find out your IP by going to www.whatismyip.com

There is a similar ip search site called IP-Details.com to check our External ip address. Here it display IP address, ISP, Location, Country and so on,...


985 days necro to promote some strange site noone needs?
All your posts look the same. Are you even human?

Im not really here, its just your imagination.
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!