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 cp-wjhan committed Jun 26, 2023
1 parent 078222e commit ca2aa4c
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 @@ -1570,7 +1570,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 ca2aa4c

Please sign in to comment.