View definition

(*BlockChain).IsCheckpointCandidate

Defined in github.com/btcsuite/btcd/blockchain/checkpoints.go

Description

IsCheckpointCandidate returns whether or not the passed block is a good checkpoint candidate.

The factors used to determine a good checkpoint are:

- The block must be in the main chain
- The block must be at least 'CheckpointConfirmations' blocks prior to the
  current end of the main chain
- The timestamps for the blocks before and after the checkpoint must have
  timestamps which are also before and after the checkpoint, respectively
  (due to the median time allowance this is not always the case)
- The block must not contain any strange transaction such as those with
  nonstandard scripts

The intent is that candidates are reviewed by a developer to make the final decision and then manually added to the list of checkpoints for a network.

This function is safe for concurrent access.

IsCheckpointCandidate is referenced in 2 repositories

github.com/btcsuite/btcd

...