Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eth/filters: add global block logs cache #25459

Merged
merged 13 commits into from
Aug 19, 2022
Prev Previous commit
Next Next commit
eth/filters: remove db reference in Filter
  • Loading branch information
fjl authored and s1na committed Aug 4, 2022
commit a0edae2da9848d95cf65113db38f34cb47c920a7
3 changes: 0 additions & 3 deletions eth/filters/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,13 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/bloombits"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/ethdb"
"github.com/ethereum/go-ethereum/rpc"
)

// Filter can be used to retrieve and filter logs.
type Filter struct {
sys *FilterSystem

db ethdb.Database
addresses []common.Address
topics [][]common.Hash

Expand Down Expand Up @@ -91,7 +89,6 @@ func newFilter(sys *FilterSystem, addresses []common.Address, topics [][]common.
sys: sys,
addresses: addresses,
topics: topics,
db: sys.backend.ChainDb(),
}
}

Expand Down