Skip to content

Commit

Permalink
core: fix typo in txpool (ethereum#25149)
Browse files Browse the repository at this point in the history
Fix typo in txPool truncateQueue comment
  • Loading branch information
aaronbuchwald authored and gzliudan committed Nov 1, 2024
1 parent 77e2ad9 commit 7237811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/tx_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -1618,7 +1618,7 @@ func (pool *TxPool) truncatePending() {
pendingRateLimitMeter.Mark(int64(pendingBeforeCap - pending))
}

// truncateQueue drops the oldes transactions in the queue if the pool is above the global queue limit.
// truncateQueue drops the oldest transactions in the queue if the pool is above the global queue limit.
func (pool *TxPool) truncateQueue() {
queued := uint64(0)
for _, list := range pool.queue {
Expand Down

0 comments on commit 7237811

Please sign in to comment.