aboutsummaryrefslogtreecommitdiffstats
path: root/eth/peer.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-06-08 19:06:36 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-06-08 19:12:00 +0800
commit63c6cedb14cbd461733e33ffac016dc7d8e431ae (patch)
treea1593178989ed92561b37dceb90fbf7401af4b10 /eth/peer.go
parent4b2dd44711a04c639ecde68806455ccf7244acce (diff)
downloadgo-tangerine-63c6cedb14cbd461733e33ffac016dc7d8e431ae.tar.gz
go-tangerine-63c6cedb14cbd461733e33ffac016dc7d8e431ae.tar.zst
go-tangerine-63c6cedb14cbd461733e33ffac016dc7d8e431ae.zip
eth/downloader: cap the hash ban set, add test for it
Diffstat (limited to 'eth/peer.go')
-rw-r--r--eth/peer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/peer.go b/eth/peer.go
index bb6a20349..b2fa20ebb 100644
--- a/eth/peer.go
+++ b/eth/peer.go
@@ -102,7 +102,7 @@ func (p *peer) sendTransaction(tx *types.Transaction) error {
func (p *peer) requestHashes(from common.Hash) error {
glog.V(logger.Debug).Infof("[%s] fetching hashes (%d) %x...\n", p.id, downloader.MaxHashFetch, from[:4])
- return p2p.Send(p.rw, GetBlockHashesMsg, getBlockHashesMsgData{from, downloader.MaxHashFetch})
+ return p2p.Send(p.rw, GetBlockHashesMsg, getBlockHashesMsgData{from, uint64(downloader.MaxHashFetch)})
}
func (p *peer) requestBlocks(hashes []common.Hash) error {