uncomment future block TD check, add test for skipping TD check on future block
This commit is contained in:
@@ -473,8 +473,8 @@ func (self *peer) getBlockHashes() bool {
|
||||
// XXX added currentBlock check (?)
|
||||
if self.currentBlock != nil && self.currentBlock.Td != nil && !self.currentBlock.Queued() {
|
||||
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
|
||||
|
Reference in New Issue
Block a user