Remove TODO that is complete.

This commit is contained in:
Dave Collins 2014-06-26 20:31:19 -05:00
parent ad275b34a8
commit cf3ad14d4d

View file

@ -82,12 +82,6 @@ func (b *BlockChain) maybeAcceptBlock(block *btcutil.Block, flags BehaviorFlags)
// It's safe to ignore the error on Sha since it's already cached. // It's safe to ignore the error on Sha since it's already cached.
blockHash, _ := block.Sha() blockHash, _ := block.Sha()
if !b.verifyCheckpoint(blockHeight, blockHash) { if !b.verifyCheckpoint(blockHeight, blockHash) {
// TODO(davec): This should probably be a distinct error type
// (maybe CheckpointError). Since this error shouldn't happen
// unless the peer is connected to a rogue network serving up an
// alternate chain, the caller would likely need to react by
// disconnecting peers and rolling back the chain to the last
// known good point.
str := fmt.Sprintf("block at height %d does not match "+ str := fmt.Sprintf("block at height %d does not match "+
"checkpoint hash", blockHeight) "checkpoint hash", blockHeight)
return ruleError(ErrBadCheckpoint, str) return ruleError(ErrBadCheckpoint, str)