diff options
author | obscuren <geffobscura@gmail.com> | 2015-04-04 22:24:22 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-04-04 22:24:44 +0800 |
commit | 0d1a9ce64847775b19ab1f0bbb7b2cc7771e862a (patch) | |
tree | 5587a5d0bddea0e0b16c328cac209e928f3b84b8 /blockpool/blockpool.go | |
parent | c985ce4d78db468bd4841705ae600913db6b29b8 (diff) | |
download | dexon-0d1a9ce64847775b19ab1f0bbb7b2cc7771e862a.tar dexon-0d1a9ce64847775b19ab1f0bbb7b2cc7771e862a.tar.gz dexon-0d1a9ce64847775b19ab1f0bbb7b2cc7771e862a.tar.bz2 dexon-0d1a9ce64847775b19ab1f0bbb7b2cc7771e862a.tar.lz dexon-0d1a9ce64847775b19ab1f0bbb7b2cc7771e862a.tar.xz dexon-0d1a9ce64847775b19ab1f0bbb7b2cc7771e862a.tar.zst dexon-0d1a9ce64847775b19ab1f0bbb7b2cc7771e862a.zip |
Disabled peer TD check to support suspended blocks (Future blocks)
@zelig When blocks are in the future they'll be cached and processed at
a later time. Because of this the returned TD will be much lower than
the broadcasted TD.
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 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() } } } |