Skip to content

Commit

Permalink
debug: add more logs7
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonberg1997 committed Apr 23, 2024
1 parent fd30848 commit 2bedf27
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions miner/worker_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,21 +64,24 @@ func (w *worker) fillTransactionsAndBundles(interruptCh chan int32, env *environ

{
w.mu.RLock()
// tip := w.tip
tip := w.tip
w.mu.RUnlock()

// Retrieve the pending transactions pre-filtered by the 1559/4844 dynamic fees
filter := txpool.PendingFilter{
// MinTip: tip,
}
filter := txpool.PendingFilter{}
filter.OnlyPlainTxs, filter.OnlyBlobTxs = true, false
pendingPlainTxs := w.eth.TxPool().Pending(filter)
log.Info("test pending tx count", "plain", len(pendingPlainTxs))

filter.MinTip = tip
if env.header.BaseFee != nil {
filter.BaseFee = uint256.MustFromBig(env.header.BaseFee)
}
if env.header.ExcessBlobGas != nil {
filter.BlobFee = uint256.MustFromBig(eip4844.CalcBlobFee(*env.header.ExcessBlobGas))
}
filter.OnlyPlainTxs, filter.OnlyBlobTxs = true, false
pendingPlainTxs := w.eth.TxPool().Pending(filter)
pendingPlainTxs = w.eth.TxPool().Pending(filter)

filter.OnlyPlainTxs, filter.OnlyBlobTxs = false, true
pendingBlobTxs := w.eth.TxPool().Pending(filter)
Expand Down

0 comments on commit 2bedf27

Please sign in to comment.