From cf3ad14d4df79fec5f41f1f0d5672b216c5c8556 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Thu, 26 Jun 2014 20:31:19 -0500 Subject: [PATCH] Remove TODO that is complete. --- accept.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/accept.go b/accept.go index 10b6a222..f9cddb94 100644 --- a/accept.go +++ b/accept.go @@ -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. blockHash, _ := block.Sha() 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 "+ "checkpoint hash", blockHeight) return ruleError(ErrBadCheckpoint, str)