les: limit state ODR retrievals to the last 100 blocks (#17744)
This commit is contained in:
committed by
Martin Holst Swende
parent
96fd50be10
commit
b7bbe66b19
@ -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)
|
||||
|
Reference in New Issue
Block a user