dcrd/cmd
Dave Collins 4da12163dc
blockchain: Make checkpoints configurable.
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.
2019-12-05 21:46:40 -06:00
..
addblock blockchain: Make checkpoints configurable. 2019-12-05 21:46:40 -06:00
dcrctl multi: remove whitespace 2019-11-21 18:31:30 -06:00
findcheckpoint multi: remove whitespace 2019-11-21 18:31:30 -06:00
gencerts multi: Correct typos. 2019-08-22 10:20:03 -05:00
promptsecret promptsecret: Add -n flag to prompt multiple times 2019-03-28 10:24:53 -05:00