Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions crates/rpc/rpc-eth-api/src/helpers/pending_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ use reth_storage_api::{
ReceiptProvider, StateProviderBox, StateProviderFactory,
};
use reth_transaction_pool::{
error::InvalidPoolTransactionError, BestTransactionsAttributes, PoolTransaction,
TransactionPool,
error::InvalidPoolTransactionError, BestTransactions, BestTransactionsAttributes,
PoolTransaction, TransactionPool,
};
use revm::context_interface::Block;
use std::{
Expand Down Expand Up @@ -265,11 +265,14 @@ pub trait LoadPendingBlock:

// Only include transactions if not configured as Empty
if !self.pending_block_kind().is_empty() {
let mut best_txs =
self.pool().best_transactions_with_attributes(BestTransactionsAttributes::new(
let mut best_txs = self
.pool()
.best_transactions_with_attributes(BestTransactionsAttributes::new(
block_env.basefee,
block_env.blob_gasprice().map(|gasprice| gasprice as u64),
));
))
// freeze to get a block as fast as possible
.without_updates();

while let Some(pool_tx) = best_txs.next() {
// ensure we still have capacity for this transaction
Expand Down