aboutsummaryrefslogtreecommitdiffstats
path: root/blockpool/peers.go
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2015-04-09 04:14:49 +0800
committerzelig <viktor.tron@gmail.com>2015-04-09 20:58:35 +0800
commit0e2bc23148731a2e9fbb22885aced057e308335a (patch)
treeb792b86e58bd051aa4465feb28400d1dd84c0f42 /blockpool/peers.go
parente55747a074c7f280029b94c94418d60dff5d6773 (diff)
downloadgo-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/peers.go')
-rw-r--r--blockpool/peers.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/blockpool/peers.go b/blockpool/peers.go
index 7e6d281bb..8a52545df 100644
--- a/blockpool/peers.go
+++ b/blockpool/peers.go
@@ -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