eth/filters: fixed tests

This commit is contained in:
Zsolt Felfoldi 2025-03-12 18:11:14 +01:00
parent 9c42b48bad
commit c27586d55a
2 changed files with 2 additions and 2 deletions

View file

@ -160,7 +160,7 @@ func (b *testBackend) NewMatcherBackend() filtermaps.MatcherBackend {
func (b *testBackend) startFilterMaps(history uint64, noHistory bool, params filtermaps.Params) {
head := b.CurrentBlock()
b.fm = filtermaps.NewFilterMaps(b.db, filtermaps.NewStoredChainView(b, head.Number.Uint64(), head.Hash()), params, history, 1, noHistory, "")
b.fm = filtermaps.NewFilterMaps(b.db, filtermaps.NewChainView(b, head.Number.Uint64(), head.Hash()), params, history, 1, noHistory, "")
b.fm.Start()
b.fm.WaitIdle()
}

View file

@ -476,7 +476,7 @@ func TestRangeLogs(t *testing.T) {
updateHead := func() {
head := bc.CurrentBlock()
backend.fm.TargetViewCh <- filtermaps.NewStoredChainView(backend, head.Number.Uint64(), head.Hash())
backend.fm.SetTargetView(filtermaps.NewChainView(backend, head.Number.Uint64(), head.Hash()))
backend.fm.WaitIdle()
}