Skip to content

Commit 75b18c8

Browse files
JukLee0iragzliudan
authored andcommitted
eth: remove chainDb field in FilterAPI
1 parent bea4431 commit 75b18c8

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/XinFinOrg/XDPoSChain/common"
3030
"github.com/XinFinOrg/XDPoSChain/common/hexutil"
3131
"github.com/XinFinOrg/XDPoSChain/core/types"
32-
"github.com/XinFinOrg/XDPoSChain/ethdb"
3332

3433
// "github.com/XinFinOrg/XDPoSChain/ethdb"
3534
"github.com/XinFinOrg/XDPoSChain/rpc"
@@ -57,7 +56,6 @@ type filter struct {
5756
// information related to the Ethereum protocol such als blocks, transactions and logs.
5857
type FilterAPI struct {
5958
sys *FilterSystem
60-
chainDb ethdb.Database
6159
events *EventSystem
6260
filtersMu sync.Mutex
6361
filters map[rpc.ID]*filter
@@ -68,7 +66,6 @@ type FilterAPI struct {
6866
func NewFilterAPI(system *FilterSystem, lightMode bool) *FilterAPI {
6967
api := &FilterAPI{
7068
sys: system,
71-
chainDb: system.backend.ChainDb(),
7269
events: NewEventSystem(system, lightMode),
7370
filters: make(map[rpc.ID]*filter),
7471
timeout: system.cfg.Timeout,

0 commit comments

Comments
 (0)