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/odr_test.go | |
parent | 96fd50be10885c9b3033404df698177fdb63d036 (diff) | |
download | dexon-b7bbe66b19fb19b95053977586e619a40478a7d8.tar dexon-b7bbe66b19fb19b95053977586e619a40478a7d8.tar.gz dexon-b7bbe66b19fb19b95053977586e619a40478a7d8.tar.bz2 dexon-b7bbe66b19fb19b95053977586e619a40478a7d8.tar.lz dexon-b7bbe66b19fb19b95053977586e619a40478a7d8.tar.xz dexon-b7bbe66b19fb19b95053977586e619a40478a7d8.tar.zst dexon-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.go | 2 |
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 |