There’s an choice to fast-sync by downloading a snapshot of the datadir from a synced pruned node.
This entails a stronger belief assumption in comparison with the proposed assumeutxo
(in addition to of assumevalid
) as you are giving freely full management over your datadir. This will doubtlessly open your node as much as sure sorts of assaults – for instance, a buffer overflow could also be discovered that impacts studying (anticipated to be beforehand verified) blocks from disk, however not when studying them from the P2P community. Or feeding your node with inconsistent database state that triggers some surprising edge-case.
I am conscious of two distributors that publish pruned datadir snapshots:
- prunednode.right this moment, which is maintained by the Specter pockets builders and built-in into Specter
- BTCPay’s fastsync, additionally built-in as an choice into BTCPay. Directions for downloading the snapshots are accessible right here.
Nonetheless, each of them are for mainnet. I am not conscious of testnet snapshot being accessible wherever.
Utilizing a snapshot is also a great choice if you have already got a synced node and wish to setup a brand new one on a brand new machine.
In a venture I am engaged on, I built-in prunednode.right this moment as a solution to rapidly setup a pruned node (+block explorer, electrum server and extra). This one-liner will get every part up and working:
docker run -it --rm --name ez -v ~/eznode:/information eznode/eznode TRUSTED_FASTSYNC=1
Extra info accessible at https://ezno.de/packages#fast-sync