Files
cuprate-for-explorer/misc/FAST_SYNC_HASHES.md
hinto-janai b862b3da83 fast-sync: .bin -> .json (#448)
* serialize to json

* hex

* build script + static

* doc
2025-05-02 18:55:12 +01:00

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.