decred / dcrd

Decred daemon in Go (golang).
https://decred.org
ISC License
733 stars 289 forks source link

contrib: Add script to bump assumevalid block. #3418

Closed davecgh closed 1 month ago

davecgh commented 1 month ago

This requires #3416 and is rebased on #3417.

This adds a script to contrib/devtools that queries the main and test networks with dcrctl to determine suitable updated blocks to use for their assumevalid block and then creates a git commit on a new branch that updates the chaincfg/mainnetparams.go and chaincfg/testnetparams.go files accordingly. The commit description includes the relevant details and instructions for others to verify the results.