-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to generate dumps of node, slpdb and fulcrum #22
Comments
Dump URL/data format (WIP) Backup file : Example: Lets say our storage root (prefix) is
Dump format : Depends on the application, the devkit needs to know how to deal with it manifest.json proposed format {
"height": 1500000, //Last known block included in the dump
"filename": "bu.tar.gz", //Filename of the actual dump
"sha256sum" : "c98c24b677eff44860afea6f493bbaec5bb1c4cbb209c6fc2bbb47f66ff2ad31", //sha256sum of bu.tar.gz
"version": "1.9.2", //Version used to make this dump. The users version must be same or newer
"devkit_version": "1.2.3", //The version of devkit this dump supports. Restore script would take this into account to determine how to process this dump
"time" : "2021-12-20T11:38:39.730026" //Timestamp when this dump was created
} sig.json proposed format {
"signer": "qp3wjpa3tjlj042z2wv7hahsldgwhwy0rq9sywjpyy", //The key used to sign the manifest, the user needs to trust this signer.
"signature": "IBOvIfsAs/da1e36W8kw1cQOPqPVXCW5zJgNQ5kI8m57FycZXdeFmeyoIqJSREzE4W7vfDmdmPk0HokuJPvgPPE=" //Entire manifest.json signed by signer
} User flow when restoring (lets say they want to do bitcoin unlimited)
Note: We either need directory listing enabled, or some application server that processes some logic to point the user to the correct directory. |
Updated work-in-progress example for a smartbch restore
|
Restore step for slpdb is similar. Find the file then run mongorestore --drop --authenticationDatabase admin --archive=/tmp/slpdb.mongo.gz --gzip mongodb://mongouser:mongopass@mongodb-slpdb:27017 This needs to run somewhere (ideally in a container) that has access to the dump file and can connect to mongodb |
Currently users of bch-toolkit need to wait long times (often several days) to fully sync node+slpdb to mainnet. We should provide dumps so that the bootstrap process can be made faster.
The text was updated successfully, but these errors were encountered: