diff --git a/blockpool/blockpool.go b/blockpool/blockpool.go index d9f8e3baae..e65032fb55 100644 --- a/blockpool/blockpool.go +++ b/blockpool/blockpool.go @@ -761,10 +761,10 @@ func (self *BlockPool) checkTD(nodes ...*node) { if n.td != nil { 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() } } } diff --git a/blockpool/peers.go b/blockpool/peers.go index 285fa45b13..3f514c9e96 100644 --- a/blockpool/peers.go +++ b/blockpool/peers.go @@ -477,8 +477,8 @@ func (self *peer) getBlockHashes() bool { // XXX added currentBlock check (?) if self.currentBlock != nil && self.currentBlock.Td != nil { if self.td.Cmp(self.currentBlock.Td) != 0 { - self.addError(ErrIncorrectTD, "on block %x", self.currentBlockHash) - self.bp.status.badPeers[self.id]++ + //self.addError(ErrIncorrectTD, "on block %x", self.currentBlockHash) + //self.bp.status.badPeers[self.id]++ } } headKey := self.parentHash