diff options
author | Zsolt Felfoldi <zsfelfoldi@gmail.com> | 2016-12-06 13:16:53 +0800 |
---|---|---|
committer | Zsolt Felfoldi <zsfelfoldi@gmail.com> | 2016-12-10 16:53:25 +0800 |
commit | c8130df1d9dcc504244a49cbb12aa4c2848e5de2 (patch) | |
tree | 172e9af96668feb822d67fedc28771d7671c9e7d /les/fetcher.go | |
parent | af8a742d00f9d47b832f6f2d50a8e1c89bbf8441 (diff) | |
download | go-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.go | 2 |
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) |