{"record":{"id":"cca625d90e4f4325","repo":"FuelLabs/fuel-core","slug":"the-sum-of-the-gas-usable-by-the-transactions-is-g","errorCode":null,"errorMessage":"The sum of the gas usable by the transactions is greater than the block gas limit","messagePattern":"The sum of the gas usable by the transactions is greater than the block gas limit","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/fuel-core/src/schema/tx.rs","lineNumber":161,"sourceCode":"            .current_consensus_params();\n        let block_gas_limit = consensus_params.block_gas_limit();\n\n        if block_height.is_some() && !config.historical_execution {\n            return Err(anyhow::anyhow!(\n                \"The `blockHeight` parameter requires the `--historical-execution` option\"\n            )\n            .into());\n        }\n\n        let mut transactions = txs\n            .iter()\n            .map(|tx| FuelTx::from_bytes(&tx.0))\n            .collect::<Result<Vec<FuelTx>, _>>()?;\n        transactions.iter_mut().try_fold::<_, _, async_graphql::Result<u64>>(0u64, |acc, tx| {\n            let gas = tx.max_gas(&consensus_params)?;\n            let gas = gas.saturating_add(acc);\n            if gas > block_gas_limit {\n                return Err(anyhow::anyhow!(\"The sum of the gas usable by the transactions is greater than the block gas limit\").into());\n            }\n            tx.precompute(&consensus_params.chain_id())?;\n            Ok(gas)\n        })?;\n\n        let DryRunResult {\n            transactions,\n            storage_reads,\n        } = block_producer\n            .dry_run_txs(\n                transactions,\n                block_height.map(|x| x.into()),\n                None, // TODO(#1749): Pass parameter from API\n                utxo_validation,\n                gas_price.map(|x| x.into()),\n                record_storage_reads,\n            )\n            .await?;","sourceCodeStart":143,"sourceCodeEnd":179,"githubUrl":"https://github.com/FuelLabs/fuel-core/blob/b9d4d170da3a31c9ace5f963d633b326348e0d42/crates/fuel-core/src/schema/tx.rs#L143-L179","documentation":"Error \"The sum of the gas usable by the transactions is greater than the block gas limit\" thrown in FuelLabs/fuel-core.","triggerScenarios":"Thrown at crates/fuel-core/src/schema/tx.rs:161 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b9d4d170da3a31c9ace5f963d633b326348e0d42","analyzedAt":"2026-08-16T08:56:42.692Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}