mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
eth/filters: fixed tests
This commit is contained in:
parent
9c42b48bad
commit
c27586d55a
2 changed files with 2 additions and 2 deletions
|
|
@ -160,7 +160,7 @@ func (b *testBackend) NewMatcherBackend() filtermaps.MatcherBackend {
|
||||||
|
|
||||||
func (b *testBackend) startFilterMaps(history uint64, noHistory bool, params filtermaps.Params) {
|
func (b *testBackend) startFilterMaps(history uint64, noHistory bool, params filtermaps.Params) {
|
||||||
head := b.CurrentBlock()
|
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.Start()
|
||||||
b.fm.WaitIdle()
|
b.fm.WaitIdle()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -476,7 +476,7 @@ func TestRangeLogs(t *testing.T) {
|
||||||
|
|
||||||
updateHead := func() {
|
updateHead := func() {
|
||||||
head := bc.CurrentBlock()
|
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()
|
backend.fm.WaitIdle()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue