fix(rpc): remove redundant blob_gas_used calculation in eth_callBundle (#20131)

This commit is contained in:
Fallengirl
2025-12-05 12:30:28 +01:00
committed by GitHub
parent f744ad6e0b
commit 49059f500e

View File

@@ -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(),