mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-09 23:38:10 -05:00
fix(rpc): remove redundant blob_gas_used calculation in eth_callBundle (#20131)
This commit is contained in:
@@ -113,9 +113,7 @@ where
|
||||
.chain_spec()
|
||||
.blob_params_at_timestamp(evm_env.block_env.timestamp().saturating_to())
|
||||
.unwrap_or_else(BlobParams::cancun);
|
||||
if transactions.iter().filter_map(|tx| tx.blob_gas_used()).sum::<u64>() >
|
||||
blob_params.max_blob_gas_per_block()
|
||||
{
|
||||
if blob_gas_used > blob_params.max_blob_gas_per_block() {
|
||||
return Err(EthApiError::InvalidParams(
|
||||
EthBundleError::Eip4844BlobGasExceeded(blob_params.max_blob_gas_per_block())
|
||||
.to_string(),
|
||||
|
||||
Reference in New Issue
Block a user