aboutsummaryrefslogtreecommitdiffstats
path: root/block_pool.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-11-14 20:47:12 +0800
committerobscuren <geffobscura@gmail.com>2014-11-14 20:47:12 +0800
commitf6e55962a8cadfb440dd03467017941b96838362 (patch)
tree259bdf39e8697f03c0f1944d4c33cbfb21277204 /block_pool.go
parent20d518ee959f1621a5accf1f3432282a6c0d6c3c (diff)
downloaddexon-f6e55962a8cadfb440dd03467017941b96838362.tar
dexon-f6e55962a8cadfb440dd03467017941b96838362.tar.gz
dexon-f6e55962a8cadfb440dd03467017941b96838362.tar.bz2
dexon-f6e55962a8cadfb440dd03467017941b96838362.tar.lz
dexon-f6e55962a8cadfb440dd03467017941b96838362.tar.xz
dexon-f6e55962a8cadfb440dd03467017941b96838362.tar.zst
dexon-f6e55962a8cadfb440dd03467017941b96838362.zip
Fixes for PV41/42
* Don't expand mem on empty value * Removed all coinbase logs for PV42 * Removed C++ bug stuff for LOG*
Diffstat (limited to 'block_pool.go')
-rw-r--r--block_pool.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/block_pool.go b/block_pool.go
index f89ee71df..a1c3fc096 100644
--- a/block_pool.go
+++ b/block_pool.go
@@ -200,7 +200,7 @@ func (self *BlockPool) DistributeHashes() {
} else if lastFetchFailed || item.peer == nil {
// Find a suitable, available peer
eachPeer(self.eth.peers, func(p *Peer, v *list.Element) {
- if peer == nil && len(dist[p]) < amount/peerLen {
+ if peer == nil && len(dist[p]) < amount/peerLen && p.statusKnown {
peer = p
}
})