diff options
author | zelig <viktor.tron@gmail.com> | 2015-04-08 10:50:34 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2015-04-09 20:58:35 +0800 |
commit | cbd0b42060d537d4d899b593be1ecd5ffdbd301a (patch) | |
tree | 0b46c755020b7ef74fd6fb42567f98878953484c /blockpool/blockpool.go | |
parent | f546b486bf444d9601cf97b934b2974a9b4d58f8 (diff) | |
download | dexon-cbd0b42060d537d4d899b593be1ecd5ffdbd301a.tar dexon-cbd0b42060d537d4d899b593be1ecd5ffdbd301a.tar.gz dexon-cbd0b42060d537d4d899b593be1ecd5ffdbd301a.tar.bz2 dexon-cbd0b42060d537d4d899b593be1ecd5ffdbd301a.tar.lz dexon-cbd0b42060d537d4d899b593be1ecd5ffdbd301a.tar.xz dexon-cbd0b42060d537d4d899b593be1ecd5ffdbd301a.tar.zst dexon-cbd0b42060d537d4d899b593be1ecd5ffdbd301a.zip |
put back checkTD and unskip incorrectTD test
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 f9c8a64ab..d823d9898 100644 --- a/blockpool/blockpool.go +++ b/blockpool/blockpool.go @@ -785,10 +785,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() } } } |