Skip to content
This repository has been archived by the owner on Sep 23, 2023. It is now read-only.

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Somnath committed Sep 17, 2023
1 parent fb3b618 commit c01aa0d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions txpool/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -1531,10 +1531,10 @@ func promote(pending *PendingPool, baseFee, queued *SubPool, pendingBaseFee uint
}

// Promote best transactions from base fee pool to pending pool while they qualify
for best := baseFee.Best(); baseFee.Len() > 0 &&
best.subPool >= BaseFeePoolBits && best.minFeeCap.Uint64() >= pendingBaseFee &&
(best.Tx.Type == types.BlobTxType && best.Tx.BlobFeeCap.Uint64() >= pendingBlobFee ||
best.Tx.Type != types.BlobTxType); best = baseFee.Best() {
for best := baseFee.Best(); baseFee.Len() > 0 &&
best.subPool >= BaseFeePoolBits && best.minFeeCap.Uint64() >= pendingBaseFee &&
(best.Tx.Type == types.BlobTxType && best.Tx.BlobFeeCap.Uint64() >= pendingBlobFee ||
best.Tx.Type != types.BlobTxType); best = baseFee.Best() {
tx := baseFee.PopBest()
announcements.Append(tx.Tx.Type, tx.Tx.Size, tx.Tx.IDHash[:])
pending.Add(tx, logger)
Expand Down

0 comments on commit c01aa0d

Please sign in to comment.