This modifies blockchain to expose a new field named Checkpoints in the Config struct which allows the checkpoints to use to be specified by the caller instead of assuming the checkpoint associated with the current chain parameters. This allows the caller to customize the checkpoints as it sees fit, such as adding custom checkpoints or removing default checkpoints. In addition, this removes the DisableCheckpoints function in favor of the caller simply configuring the chain instance without checkpoints when they're disabled and updates the code to remove the associated flag accordingly. This produces simpler code and is faster since the mutex that was required to protect the aforementioned flag is no longer required. Finally, this also paves the way to significantly simplify the checkpoint finding logic and make further progress towards the overall effort to decouple the connection code from the download logic. |
||
|---|---|---|
| .. | ||
| addblock | ||
| dcrctl | ||
| findcheckpoint | ||
| gencerts | ||
| promptsecret | ||