aboutsummaryrefslogtreecommitdiffstats
path: root/les/fetcher.go
diff options
context:
space:
mode:
authorZsolt Felfoldi <zsfelfoldi@gmail.com>2016-12-06 13:16:53 +0800
committerZsolt Felfoldi <zsfelfoldi@gmail.com>2016-12-10 16:53:25 +0800
commitc8130df1d9dcc504244a49cbb12aa4c2848e5de2 (patch)
tree172e9af96668feb822d67fedc28771d7671c9e7d /les/fetcher.go
parentaf8a742d00f9d47b832f6f2d50a8e1c89bbf8441 (diff)
downloadgo-tangerine-c8130df1d9dcc504244a49cbb12aa4c2848e5de2.tar.gz
go-tangerine-c8130df1d9dcc504244a49cbb12aa4c2848e5de2.tar.zst
go-tangerine-c8130df1d9dcc504244a49cbb12aa4c2848e5de2.zip
les: using random request IDs
Diffstat (limited to 'les/fetcher.go')
-rw-r--r--les/fetcher.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/les/fetcher.go b/les/fetcher.go
index 0c8be9e2a..00cb31dfb 100644
--- a/les/fetcher.go
+++ b/les/fetcher.go
@@ -350,7 +350,7 @@ func (f *lightFetcher) request(p *peer, n *fetcherTreeNode, amount uint64) (uint
return 0, false
}
- reqID := f.odr.getNextReqID()
+ reqID := getNextReqID()
n.requested = true
cost := p.GetRequestCost(GetBlockHeadersMsg, int(amount))
p.fcServer.SendRequest(reqID, cost)