aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--blockpool/blockpool.go8
-rw-r--r--blockpool/peers.go4
2 files changed, 6 insertions, 6 deletions
diff --git a/blockpool/blockpool.go b/blockpool/blockpool.go
index d9f8e3baa..e65032fb5 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 285fa45b1..3f514c9e9 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