From 75b18c841a3778df0c2ede5cb16228fccc5bc795 Mon Sep 17 00:00:00 2001 From: JukLee0ira Date: Wed, 24 Jul 2024 16:42:08 +0800 Subject: [PATCH] eth: remove chainDb field in FilterAPI --- eth/filters/api.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/eth/filters/api.go b/eth/filters/api.go index b6ba3c5fe5..7762ee1992 100644 --- a/eth/filters/api.go +++ b/eth/filters/api.go @@ -29,7 +29,6 @@ import ( "github.com/XinFinOrg/XDPoSChain/common" "github.com/XinFinOrg/XDPoSChain/common/hexutil" "github.com/XinFinOrg/XDPoSChain/core/types" - "github.com/XinFinOrg/XDPoSChain/ethdb" // "github.com/XinFinOrg/XDPoSChain/ethdb" "github.com/XinFinOrg/XDPoSChain/rpc" @@ -57,7 +56,6 @@ type filter struct { // information related to the Ethereum protocol such als blocks, transactions and logs. type FilterAPI struct { sys *FilterSystem - chainDb ethdb.Database events *EventSystem filtersMu sync.Mutex filters map[rpc.ID]*filter @@ -68,7 +66,6 @@ type FilterAPI struct { func NewFilterAPI(system *FilterSystem, lightMode bool) *FilterAPI { api := &FilterAPI{ sys: system, - chainDb: system.backend.ChainDb(), events: NewEventSystem(system, lightMode), filters: make(map[rpc.ID]*filter), timeout: system.cfg.Timeout,