Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions itests/eth_transactions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -876,12 +876,17 @@ func TestTraceFilter(t *testing.T) {
hc := <-ch // current
require.Equal(t, store.HCCurrent, hc[0].Type)
beforeNullHeight := hc[0].Val.Height()
hc = <-ch // wait for next block
require.Equal(t, store.HCApply, hc[0].Type)
afterNullHeight := hc[0].Val.Height()
require.Greater(t, afterNullHeight, beforeNullHeight+1)
hc = <-ch // one more, so "latest" points to the block after nulls
require.Equal(t, store.HCApply, hc[0].Type)
var blocks int
for {
hc = <-ch // wait for next block
require.Equal(t, store.HCApply, hc[0].Type)
if hc[0].Val.Height() > beforeNullHeight {
blocks++
if blocks == 2 { // two blocks, so "latest" points to the block after nulls
break
}
}
}

// define filter criteria that spans a null round so it has to at lest consider it
toBlock = "latest"
Expand Down