Bitcoin Forum
May 24, 2024, 01:05:36 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Share the same blockchain database???  (Read 816 times)
gojimgo (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 1


View Profile
August 03, 2016, 02:15:03 AM
Merited by ABCbits (1)
 #1

Can two different programs running independent bitcoin core use the same blocks, chainstate and fee_estimates data folder?
In other words, can two computers share the same blockchain database folder?
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3402
Merit: 6653


Just writing some code


View Profile WWW
August 03, 2016, 02:23:50 AM
Merited by ABCbits (2)
 #2

No. They would end up overwriting each other and be extremely confused when something changes to the files that it didn't add. There is also a lockfile used to prevent this from happening.

2c0de
Full Member
***
Offline Offline

Activity: 138
Merit: 102


View Profile
August 10, 2016, 05:25:44 PM
 #3

They can read blocks, because blocks are append-only.

Only one program can write new blocks.

But they cannot share chainstate and the other.

DHjxvnHB9RirtPbvkovSotn1fY2poNffoi
LWeT4wwDVdJ9x49UcXPyS6CznRpbQFM6nx
0x96273C2FD825f0A2745d917bbbfabD6032dC1aDD
Frodomaga
Sr. Member
****
Offline Offline

Activity: 265
Merit: 250



View Profile
August 11, 2016, 04:47:29 PM
 #4

you may also take a look here

http://bitcoin.stackexchange.com/questions/10723/separate-wallets-sharing-the-same-blockchain
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!