mirror of
https://github.com/MAGICGrants/cuprate-for-explorer.git
synced 2026-01-08 19:27:54 -05:00
779 B
779 B
Fast sync hashes
Cuprate has a binary that generates fast-sync hashes and puts them into a JSON file - this file is then used by cuprated.
The code that does so is located at consensus/fast-sync.
To create the hashes, you need a fully synced database generated from cuprated.
After that, build the binary that generates fast-sync hashes:
cargo build --release --package cuprate-fast-sync
Run the binary:
./target/release/create-fs-file --height $HEIGHT
where $HEIGHT is the top blockchain height.
The generated fast_sync_hashes.json file should be in the current directory.
This should be moved to binaries/cuprated/src/blockchain/fast_sync/fast_sync_hashes.json.