mirror of
https://github.com/kaspanet/kaspad.git
synced 2026-02-20 18:56:56 +00:00
This contains a bit of cleanup and additional logic to improve the recently-added ability to specify additional checkpoints via the --addcheckpoint option. In particular: - Improve error messages in the checkpoint parsing - Correct the mergeCheckpoints function to weed out duplicate height checkpoints while using the most-recently provided one as described by its comment - Add an assertion to blockchain.New that the provided checkpoints are sorted as required - Keep comments to 80 columns and use two spaces after periods in them to be consistent with the rest of the code base - Make the entry in doc.go match the actual btcd -h output
9.4 KiB
9.4 KiB