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 authored and s1na committed Aug 4, 2022
1 parent a05dbf1 commit a0edae2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions eth/filters/filter.go
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 a0edae2

Please sign in to comment.