Skip to content

Commit

Permalink
eth/filters: remove db reference in Filter
Browse files Browse the repository at this point in the history
  • Loading branch information
fjl committed Aug 3, 2022
1 parent a834f5a commit 9365c04
Showing 1 changed file with 0 additions and 3 deletions.
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

0 comments on commit 9365c04

Please sign in to comment.