checkpoints
This commit is contained in:
@@ -75,11 +75,10 @@ Install deps on Linux:
|
||||
- Update checkpoints in src/chainparams.cpp via util/checkpoints.pl
|
||||
- hushd must be running to run this script, since it uses hush-cli to get the data
|
||||
- Look for line which says "END HUSH mainnet checkpoint data" near line 560 in chainparams.cpp , that is where checkpoint data ends
|
||||
- Find the highest block height of data, let's call it HEIGHT
|
||||
- Find the highest block height of checkpoint data, let's call it HEIGHT
|
||||
- Run `./util/checkpoints.pl 1000 HEIGHT &> checkpoints.txt` to generate the latest checkpoint data
|
||||
- To copy the new data from checkpoints.txt into the file, one way in Vim is to type ":r checkpoints.txt" which will read in a file and paste it as the current cursor
|
||||
- You will see 3 lines of "stats" at the end of the output, you just pasted in the newest stats. Delete the old stats that should be the 3 lines under the current stats
|
||||
- The script generates a comment "Generated at ...", that should be moved to the very beginning of the checkpoint data
|
||||
- Make sure the new code compiles, commit and push
|
||||
- Run `./util/checkpoints.pl help` to see some basic help
|
||||
- By default it will generate checkpoints for every 1000 blocks, the "stride"
|
||||
@@ -117,4 +116,4 @@ Install deps on Linux:
|
||||
|
||||
## Platform-specific notes
|
||||
|
||||
Use `./util/build-mac.sh` to compile on Apple/Mac systems, use `./util/build-win.sh` to build on Windows and `./util/build-arm.sh` to build on ARMv8 systems.
|
||||
Use `./util/build-mac.sh` to compile on Apple/Mac systems, use `./util/build-win.sh` to build on Windows and `./util/build-arm.sh` to build on ARMv8 systems.
|
||||
|
||||
Reference in New Issue
Block a user