Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
deterministic snapshots #5956
Starting this review early.
This is the plumbing and unit tests for creating:
Things left to do:
instructions for using snapshots
configuring a snapshot directory
By default snapshots are written to the
Snapshots are written out to files named with the pattern
Triggering the creation of a snapshot
Snapshots can be triggered at runtime using the RPC available through the
Instantiating a node from a snapshot
When starting a new instance of
When instantiating a node from a snapshot, it is illegal to pass in any
NOTE instantiating a node from a snapshot without a blocks.log is valid BUT it will create a partial blocks.log which will affect its ability to service RPC/P2P requests for block data.
Instructions for using integrity hashes
Integrity hashes are a way of comparing the contents of the blockchain state database. They consist of a sha256 hash of a deterministic binary representation of all consensus affecting state.
calculating an integrity hash
Integrity hashes can be retrieved at runtime using the RPC available through the