Skip to content

Commit

Permalink
core/txpool/legacypool: post-rebase fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
holiman committed Dec 12, 2024
1 parent c1ace4d commit 9c154ae
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions core/txpool/legacypool/legacypool.go
Original file line number Diff line number Diff line change
Expand Up @@ -1754,19 +1754,9 @@ func (pool *LegacyPool) Clear() {
senderAddr, _ := types.Sender(pool.signer, tx)
pool.reserve(senderAddr, false)
}
for localSender, _ := range pool.locals.accounts {
pool.reserve(localSender, false)
}

pool.all = newLookup()
pool.priced = newPricedList(pool.all)
pool.pending = make(map[common.Address]*list)
pool.queue = make(map[common.Address]*list)

if !pool.config.NoLocals && pool.config.Journal != "" {
pool.journal = newTxJournal(pool.config.Journal)
if err := pool.journal.rotate(pool.local()); err != nil {
log.Warn("Failed to rotate transaction journal", "err", err)
}
}
}

0 comments on commit 9c154ae

Please sign in to comment.