Skip to content

Commit d785905

Browse files
eth/filters: remove unused field 'chaindb' in PublicFilterAPI (ethereum#24072)
1 parent cc87cbd commit d785905

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

eth/filters/api.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ import (
2929
"github.com/ethereum/go-ethereum/common"
3030
"github.com/ethereum/go-ethereum/common/hexutil"
3131
"github.com/ethereum/go-ethereum/core/types"
32-
"github.com/ethereum/go-ethereum/ethdb"
3332
"github.com/ethereum/go-ethereum/event"
3433
"github.com/ethereum/go-ethereum/rpc"
3534
)
@@ -51,7 +50,6 @@ type PublicFilterAPI struct {
5150
backend Backend
5251
mux *event.TypeMux
5352
quit chan struct{}
54-
chainDb ethdb.Database
5553
events *EventSystem
5654
filtersMu sync.Mutex
5755
filters map[rpc.ID]*filter
@@ -62,7 +60,6 @@ type PublicFilterAPI struct {
6260
func NewPublicFilterAPI(backend Backend, lightMode bool, timeout time.Duration) *PublicFilterAPI {
6361
api := &PublicFilterAPI{
6462
backend: backend,
65-
chainDb: backend.ChainDb(),
6663
events: NewEventSystem(backend, lightMode),
6764
filters: make(map[rpc.ID]*filter),
6865
timeout: timeout,

0 commit comments

Comments
 (0)