mirror of
https://github.com/MAGICGrants/cuprate-for-explorer.git
synced 2026-01-09 11:47:53 -05:00
* initial files * hashes * ci: more targets * release.yml * moves * remove commit list * typo * add linux arm to `monerod-download` * update * fast sync * remove `cuprated.service` * update * changes * move contributing
744 B
744 B
Fast sync hashes
Cuprate has a binary that generate fast-sync hashes and puts them into a binary blob file.
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.bin file should be in the current directory.
This should be moved to binaries/cuprated/src/blockchain/fast_sync/fast_sync_hashes.bin.