Skip to content

Commit

Permalink
drop achive local from pool
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanxyg committed Mar 1, 2024
1 parent 852a200 commit eab8048
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -1058,12 +1058,12 @@ func (w *worker) fillTransactions(interrupt *atomic.Int32, env *environment) err
// Split the pending transactions into locals and remotes.
start1 := time.Now()
localTxs, remoteTxs := make(map[common.Address][]*txpool.LazyTransaction), pending
for _, account := range w.eth.TxPool().Locals() {
if txs := remoteTxs[account]; len(txs) > 0 {
delete(remoteTxs, account)
localTxs[account] = txs
}
}
// for _, account := range w.eth.TxPool().Locals() {
// if txs := remoteTxs[account]; len(txs) > 0 {
// delete(remoteTxs, account)
// localTxs[account] = txs
// }
// }
log.Info("got locals from pool", "parent hash", env.header.ParentHash, "duration", common.PrettyDuration(time.Since(start1)))


Expand Down

0 comments on commit eab8048

Please sign in to comment.