How can i sync only the last month of the blockchain with bitcoin core?

1

Anyone have any idea how can i do with bitcoin core.

Thanks in advance.

nk0

Posted 2018-02-23T23:01:33.057

Reputation: 13

Answers

2

You can do that with Bitcoin-core but it's not recommended, You may want to use electrum instead of Bitcoin-core.

You don't have to download the blockchain using electrum.org.

Adam

Posted 2018-02-23T23:01:33.057

Reputation: 3 215

1Not entirely true, AFAIK you still can do what was asked with Bitcoin Core, just no longer the recommended option.Willtech 2018-02-27T08:12:58.133

Yeah, you're right. I've edited the answer!Adam 2018-02-27T14:15:12.473

1

I think you can still do that if someone running a full node (non-pruned) will make you a bootstrap.dat.

From https://bitcoin.org/bin/block-chain/README.txt:

As of Bitcoin Core version 0.10.0 and later, the block chain bootstrap torrent hosted here takes more time to download and import than it would to simply start Bitcoin Core and let it sync itself.

Forum thread on BitcoinTalk:
https://bitcointalk.org/index.php?topic=145386.0

Bitcoin-Qt/bitcoind version 0.7.1 and later supports a special import feature: If the file "bootstrap.dat" is found in the bitcoin data directory, it will validate and import all blockchain data found in that file. The following torrent presents a bootstrap.dat file for that feature.

From https://github.com/bitcoin-dot-org/:

As of Bitcoin Core version 0.10.0 and later, the block chain bootstrap torrent formerly hosted here is slower than a direct download using the bitcoin P2P protocol & client. If you want the torrent for other reasons, please visit:

https://bitcointalk.org/index.php?topic=145386.0

To download the latest version of Bitcoin Core, please visit:

https://bitcoin.org/en/download

Further reading, the linked bitcoin.talk page:

Updated: August 23, 2014

Also checking https://bitcoin.org/bin/block-chain/:

24-Aug-2014 01:40

I think you can still do this if someone running a full node (non-pruned) will make you a bootstrap.dat however your trust in the provider must be implicit.

If you want to keep only a limited number of blocks, enable prune={bytes} with bytes > 550 in your bitcoin.conf file.

Willtech

Posted 2018-02-23T23:01:33.057

Reputation: 2 657

1This is not a reasonable answer. Bootstrap files are not verified by the node and are no longer the suggested way of initial sync.Ron 2018-02-24T23:22:55.927

@Ron There are always caveats. Yes, you must trust that the supplier of the file is honest and is on the right chain. I thought that each block was still validated albeit that the node has no knowledge of whether it is on the right chain. Somewhat different importing a bootstrap for only the last month to doing so for initial sync. Otherwise, the answer is, no - there is no way. Possibly I misinterpreted the question, thinking the OP was otherwise up to date.Willtech 2018-02-25T07:43:38.260

1

There have always been caveats with using a bootstrap file but it was no longer suggested beginning with 0.10.0 due to the introduction of a faster synchronization algorithm. See https://github.com/bitcoin-dot-org/bitcoin.org/issues/846

Ron 2018-02-26T09:20:51.450

@Ron A useful link - I was aware the answer was something like that third-hand but had not actually read it myselfWilltech 2018-02-27T07:56:39.590

I have updated my answer. Note that the official information from bitcoin.org says that the node will validate and import all blockchain data found in that file when using bootstrap.dat.Willtech 2018-02-27T20:46:45.787