diff options
author | zelig <viktor.tron@gmail.com> | 2015-04-09 04:14:49 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2015-04-09 20:58:35 +0800 |
commit | 0e2bc23148731a2e9fbb22885aced057e308335a (patch) | |
tree | b792b86e58bd051aa4465feb28400d1dd84c0f42 /blockpool/blockpool.go | |
parent | e55747a074c7f280029b94c94418d60dff5d6773 (diff) | |
download | go-tangerine-0e2bc23148731a2e9fbb22885aced057e308335a.tar go-tangerine-0e2bc23148731a2e9fbb22885aced057e308335a.tar.gz go-tangerine-0e2bc23148731a2e9fbb22885aced057e308335a.tar.bz2 go-tangerine-0e2bc23148731a2e9fbb22885aced057e308335a.tar.lz go-tangerine-0e2bc23148731a2e9fbb22885aced057e308335a.tar.xz go-tangerine-0e2bc23148731a2e9fbb22885aced057e308335a.tar.zst go-tangerine-0e2bc23148731a2e9fbb22885aced057e308335a.zip |
uncomment future block TD check, add test for skipping TD check on future block
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() } } } |