0

The purpose is to sync the all the blk data into local computer for analyzing.

Is that possible to sync data (blk.dat) only with bitcoind?

Or is there any other solution available?

1 Answer 1

1

Syncing with Bitcoin Core (bitcoind) is efficient and secure so that is the recommended way to obtain the blk*.dat files. The blk*.dat format is specific to Bitcoin Core, so you can't use other implementations (like btcd) to do so.

If you only want to collect the data without verifying the blocks for validity, you can set the -assumevalid=<hex> argument to a recent block so that the entire chain up until that point is assumed to be valid (as the name suggests).

What's more, you can use the -blocksonly parameter to ignore transactions from peers that aren't in blocks, so your node will focus only on the blocks themselves.

7
  • Per my understanding, bitcoind is pretty heavy and cost many resources, is there any lightweight solution?
    – Carpemer
    Commented Dec 20, 2021 at 7:01
  • @Carpemer I've added some flags to the answer that might help achieve what you are looking for. Of course downloading the blockchain will still be time consuming and require a lot of bandwidth because of its size, but there is no way to avoid that if you want to download the whole thing. Commented Dec 20, 2021 at 7:27
  • Thanks, that is exact what I need!
    – Carpemer
    Commented Dec 20, 2021 at 7:29
  • Added assumevalid=00000000000000000002b276368619e6867fb285b02162df27eb85c08189776b into the conf file, the speed seems don't have very big change.
    – Carpemer
    Commented Jan 6, 2022 at 23:27
  • Is your download speed fast? Remember you are still downloading around 380 GB. Commented Jan 7, 2022 at 4:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.