3

If you were to obtain a copy of the bitcoin blockchain, i.e. a copy of someone's data dir excluding his wallet files on a removable drive or other storage medium, could bitcoin core verify that or not? This would be useful in developing countries where the initial blockchain download is hard to do but keeping up with the chain is easy.

Murch
  • 71,155
  • 33
  • 180
  • 600
Abdussamad
  • 2,649
  • 12
  • 19

1 Answers1

7

If you give Bitcoin Core a fully populated data directory, it will use it without any validation.

However, if you only give it the blocks/ subdirectory, it will fully validate it to recreate the chainstate directory, exactly as if it were received over the network.

Pieter Wuille
  • 98,249
  • 9
  • 183
  • 287
  • What do you make of [this statement](https://bitcointalk.org/index.php?topic=1169146.msg12847216#msg12847216)? Is there a risk of an RCE with a 3rd party copy of the data dir? – Abdussamad May 08 '19 at 07:43