Skip to content

Commit 60e00f6

Browse files
committed
eth/txpool: typo that tracker not a pool
1 parent 103dd20 commit 60e00f6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/txpool/locals/tx_tracker.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,18 @@ type TxTracker struct {
5858

5959
// New creates a new TxTracker
6060
func New(journalPath string, journalTime time.Duration, chainConfig *params.ChainConfig, next *txpool.TxPool) *TxTracker {
61-
pool := &TxTracker{
61+
tracker := &TxTracker{
6262
all: make(map[common.Hash]*types.Transaction),
6363
byAddr: make(map[common.Address]*legacypool.SortedMap),
6464
signer: types.LatestSigner(chainConfig),
6565
shutdownCh: make(chan struct{}),
6666
pool: next,
6767
}
6868
if journalPath != "" {
69-
pool.journal = newTxJournal(journalPath)
70-
pool.rejournal = journalTime
69+
tracker.journal = newTxJournal(journalPath)
70+
tracker.rejournal = journalTime
7171
}
72-
return pool
72+
return tracker
7373
}
7474

7575
// HasTx checks if TxTracker has this tx already.

0 commit comments

Comments
 (0)