Can two bitcoin-qt share the same blockchain data

1

I have a bitcoin-qt and bitcoin-abc on same computer running, can both share the same beginning of the blockchain data file ? since they both have same history till point in time.

Haddar Macdasi

Posted 2017-10-09T12:01:51.130

Reputation: 930

Answers

1

It's not a documented feature, but Bitcoin Core and its derivatives only write to the last blk*.dat file, and only read the others. So you can create symlinks to have them share older files. I've done this (for testnet) and it worked fine.

Nate Eldredge

Posted 2017-10-09T12:01:51.130

Reputation: 22 182

What possible cons do you see with this solution? – Haddar Macdasi – 2017-10-09T14:46:17.507

@HaddarMacdasi: I can't really think of any. Of course, if you decide to delete one, you'll have to move the files accordingly. – Nate Eldredge – 2017-10-09T16:06:50.657