diff options
Diffstat (limited to 'blockpool/blockpool.go')
-rw-r--r-- | blockpool/blockpool.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/blockpool/blockpool.go b/blockpool/blockpool.go index 0a130773d..2340eadae 100644 --- a/blockpool/blockpool.go +++ b/blockpool/blockpool.go @@ -790,10 +790,10 @@ func (self *BlockPool) checkTD(nodes ...*node) { if n.td != nil && !n.block.Queued() { plog.DebugDetailf("peer td %v =?= block td %v", n.td, n.block.Td) if n.td.Cmp(n.block.Td) != 0 { - // self.peers.peerError(n.blockBy, ErrIncorrectTD, "on block %x", n.hash) - // self.status.lock.Lock() - // self.status.badPeers[n.blockBy]++ - // self.status.lock.Unlock() + self.peers.peerError(n.blockBy, ErrIncorrectTD, "on block %x", n.hash) + self.status.lock.Lock() + self.status.badPeers[n.blockBy]++ + self.status.lock.Unlock() } } } |