core: remove unused field

This commit is contained in:
Gary Rong 2025-05-04 23:02:01 +08:00
parent 13bb575af5
commit 75d2ce808c

View file

@ -61,7 +61,6 @@ type txIndexer struct {
// cutoff denotes the block number before which the chain segment should // cutoff denotes the block number before which the chain segment should
// be pruned and not available locally. // be pruned and not available locally.
cutoff uint64 cutoff uint64
chain *BlockChain
db ethdb.Database db ethdb.Database
term chan chan struct{} term chan chan struct{}
closed chan struct{} closed chan struct{}
@ -73,7 +72,6 @@ func newTxIndexer(limit uint64, chain *BlockChain) *txIndexer {
indexer := &txIndexer{ indexer := &txIndexer{
limit: limit, limit: limit,
cutoff: cutoff, cutoff: cutoff,
chain: chain,
db: chain.db, db: chain.db,
term: make(chan chan struct{}), term: make(chan chan struct{}),
closed: make(chan struct{}), closed: make(chan struct{}),