Home MIP2 - Setup Bootstrap Sync

MIP2 - Setup Bootstrap Sync

titleSetup Bootstrap Sync
descriptioninclude scripts for generating bootstrap.dat backups
authorp1r0 (@P1R)
requires (optional)MIP number(s)


by creating a boostrap.dat image, and publish into an IPNS (pinned in multiple servers) and the usage of circuit relay we will be hable tu do nightly updates synced to one node that can be monitored, a second node can maybe work on weekly updates. There is already a tool inside the bitcoin core code for this prouposes, A considertion might be to clone it into the maxcoin repo if it works properly.

MIP Workflow

  1. Create a bootstrap.dat file
  2. Test if it can regenerate the blockchain faster than just a sync.
  3. Use the bitcoin scripts or others to automate the process
  4. Use crontab for update daily and weekly snapshots
  5. Publish on a site with a sha256 hash
  6. Publish automatically to an IPNS service name and add pins to multiple nodes so that they update

Security Considerations

The IPFS CID can be shown in the official site and github repo so that people do not download a compromised version of the maxcoin blockchain


p1r0 Created at: 06/17/2021 17:30 Updated at: 06/17/2021 17:30

The code from linearize is modified so that it can run on maxcoin. First part ran without problems, but the second part has a memory issue (probably no enought). gonna do some debugg, wait for my laptop blockchain to reach 100% sync (now at 75%) and retest it on my laptop with 16 ram gigs… Not set onHold

p1r0 Created at: 06/20/2021 13:45 Updated at: 06/20/2021 13:45

fixed code since there was a bug in it… updated this patch https://github.com/bitcoin/bitcoin/pull/16802

p1r0 Created at: 06/22/2021 00:45 Updated at: 06/22/2021 00:45

Linearize gets frozen at the end (might need some debugging)… still the handmade bootstrap.dat works… but might not be the proper (cleaner) way to do it

p1r0 Created at: 07/08/2021 02:23 Updated at: 07/08/2021 02:23

Testing import to a windows Machine, after the import I will create another bootstrap.dat file but with the linearize app. For now just require to debug the python linearize tool on the current linux blockchain, look for logs and why it stucks on this specific block: 557d…e70e


This post is licensed under CC BY 4.0 by the author.