decred / dcrd

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

contrib: Add script to bump min known chain work. #3419

Closed davecgh closed 2 months ago

davecgh commented 2 months ago

This requires #3416 and is rebased on #3418.

This adds a script to contrib/devtools that queries the main and test networks with dcrctl and jq to determine their current best known chain work values 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.