aboutsummaryrefslogtreecommitdiffstats
path: root/block_pool.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-12-04 22:31:48 +0800
committerobscuren <geffobscura@gmail.com>2014-12-04 22:31:48 +0800
commit73c4ca3a6fcf948f4bc637f5c1b55277cf64c06f (patch)
tree06c36a0cf7161b4d05e2b891eb02a3b6661ef322 /block_pool.go
parent296112848cfe1a9697bbb92a9deb3eb1e04d6276 (diff)
downloaddexon-73c4ca3a6fcf948f4bc637f5c1b55277cf64c06f.tar.gz
dexon-73c4ca3a6fcf948f4bc637f5c1b55277cf64c06f.tar.zst
dexon-73c4ca3a6fcf948f4bc637f5c1b55277cf64c06f.zip
Upped protocol version
Diffstat (limited to 'block_pool.go')
-rw-r--r--block_pool.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/block_pool.go b/block_pool.go
index 95c766e53..d1be70187 100644
--- a/block_pool.go
+++ b/block_pool.go
@@ -88,7 +88,7 @@ func (self *BlockPool) FetchHashes(peer *Peer) bool {
if (self.peer == nil && peer.td.Cmp(highestTd) >= 0) || (self.peer != nil && peer.td.Cmp(self.peer.td) > 0) || self.peer == peer {
if self.peer != peer {
- poollogger.Debugf("Found better suitable peer (%v vs %v)\n", self.td, peer.td)
+ poollogger.Infof("Found better suitable peer (%v vs %v)\n", self.td, peer.td)
if self.peer != nil {
self.peer.doneFetchingHashes = true
@@ -99,8 +99,7 @@ func (self *BlockPool) FetchHashes(peer *Peer) bool {
self.td = peer.td
if !self.HasLatestHash() {
- peer.doneFetchingHashes = false
-
+ peer.doneFetchingHashes = fInfo
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)}))