diff options
author | Felföldi Zsolt <zsfelfoldi@gmail.com> | 2018-10-01 21:14:53 +0800 |
---|---|---|
committer | Martin Holst Swende <martin@swende.se> | 2018-10-01 21:14:53 +0800 |
commit | b7bbe66b19fb19b95053977586e619a40478a7d8 (patch) | |
tree | ea51832839f8bd17a8c3c8774866da5ed3260c29 /les/request_test.go | |
parent | 96fd50be10885c9b3033404df698177fdb63d036 (diff) | |
download | go-tangerine-b7bbe66b19fb19b95053977586e619a40478a7d8.tar go-tangerine-b7bbe66b19fb19b95053977586e619a40478a7d8.tar.gz go-tangerine-b7bbe66b19fb19b95053977586e619a40478a7d8.tar.bz2 go-tangerine-b7bbe66b19fb19b95053977586e619a40478a7d8.tar.lz go-tangerine-b7bbe66b19fb19b95053977586e619a40478a7d8.tar.xz go-tangerine-b7bbe66b19fb19b95053977586e619a40478a7d8.tar.zst go-tangerine-b7bbe66b19fb19b95053977586e619a40478a7d8.zip |
les: limit state ODR retrievals to the last 100 blocks (#17744)
Diffstat (limited to 'les/request_test.go')
-rw-r--r-- | les/request_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/les/request_test.go b/les/request_test.go index f02c2a3d7..c9c185198 100644 --- a/les/request_test.go +++ b/les/request_test.go @@ -115,7 +115,7 @@ func testAccess(t *testing.T, protocol int, fn accessTestFn) { client.peers.Register(client.rPeer) time.Sleep(time.Millisecond * 10) // ensure that all peerSetNotify callbacks are executed client.rPeer.lock.Lock() - client.rPeer.hasBlock = func(common.Hash, uint64) bool { return true } + client.rPeer.hasBlock = func(common.Hash, uint64, bool) bool { return true } client.rPeer.lock.Unlock() // expect all retrievals to pass test(5) |