aboutsummaryrefslogtreecommitdiffstats
path: root/les/odr_test.go
diff options
context:
space:
mode:
authorFelföldi Zsolt <zsfelfoldi@gmail.com>2018-10-01 21:14:53 +0800
committerMartin Holst Swende <martin@swende.se>2018-10-01 21:14:53 +0800
commitb7bbe66b19fb19b95053977586e619a40478a7d8 (patch)
treeea51832839f8bd17a8c3c8774866da5ed3260c29 /les/odr_test.go
parent96fd50be10885c9b3033404df698177fdb63d036 (diff)
downloadgo-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/odr_test.go')
-rw-r--r--les/odr_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/les/odr_test.go b/les/odr_test.go
index e6458adf5..ac81fbcf0 100644
--- a/les/odr_test.go
+++ b/les/odr_test.go
@@ -194,7 +194,7 @@ func testOdr(t *testing.T, protocol int, expFail uint64, fn odrTestFn) {
client.peers.Register(client.rPeer)
time.Sleep(time.Millisecond * 10) // ensure that all peerSetNotify callbacks are executed
client.peers.lock.Lock()
- client.rPeer.hasBlock = func(common.Hash, uint64) bool { return true }
+ client.rPeer.hasBlock = func(common.Hash, uint64, bool) bool { return true }
client.peers.lock.Unlock()
test(5)
// still expect all retrievals to pass, now data should be cached locally