aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-12-04 22:38:41 +0800
committerobscuren <geffobscura@gmail.com>2014-12-04 22:38:41 +0800
commit565389815040d518529b973d4a6fc38c08e43e5a (patch)
tree30ccd4014697baaf38420c27667c0bc274bb85fc
parent73123bf257934e95e08311d4af9b3382f3dcdb39 (diff)
downloadgo-tangerine-565389815040d518529b973d4a6fc38c08e43e5a.tar.gz
go-tangerine-565389815040d518529b973d4a6fc38c08e43e5a.tar.zst
go-tangerine-565389815040d518529b973d4a6fc38c08e43e5a.zip
vim error :S
-rw-r--r--block_pool.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/block_pool.go b/block_pool.go
index d1be70187..595400c79 100644
--- a/block_pool.go
+++ b/block_pool.go
@@ -99,7 +99,8 @@ func (self *BlockPool) FetchHashes(peer *Peer) bool {
self.td = peer.td
if !self.HasLatestHash() {
- peer.doneFetchingHashes = fInfo
+ peer.doneFetchingHashes = false
+
const amount = 256
peerlogger.Debugf("Fetching hashes (%d) %x...\n", amount, peer.lastReceivedHash[0:4])
peer.QueueMessage(wire.NewMessage(wire.MsgGetBlockHashesTy, []interface{}{peer.lastReceivedHash, uint32(amount)}))