{"record":{"id":"dfe5f6d0f165eb0c","repo":"FuelLabs/fuel-core","slug":"the-transaction-has-more-inputs-than-allowed-by-th","errorCode":null,"errorMessage":"The transaction has more inputs than allowed by the consensus","messagePattern":"The transaction has more inputs than allowed by the consensus","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/fuel-core/src/schema/tx/assemble_tx.rs","lineNumber":179,"sourceCode":"    has_predicates: bool,\n    index_of_first_fake_variable_output: Option<u16>,\n    original_max_fee: u64,\n    original_witness_limit: u64,\n    fee_payer_account: Account,\n    estimated_predicates_count: usize,\n    dry_run_count: usize,\n}\n\nimpl<'a, Tx> AssembleTx<'a, Tx>\nwhere\n    Tx: ExecutableTransaction + Cacheable + Send + 'static,\n{\n    pub fn new(tx: Tx, mut arguments: AssembleArguments<'a>) -> anyhow::Result<Self> {\n        let max_inputs = arguments.consensus_parameters.tx_params().max_inputs();\n        let max_outputs = arguments.consensus_parameters.tx_params().max_outputs();\n\n        if tx.inputs().len() > max_inputs as usize {\n            return Err(anyhow::anyhow!(\n                \"The transaction has more inputs than allowed by the consensus\"\n            ));\n        }\n\n        if tx.outputs().len() > max_outputs as usize {\n            return Err(anyhow::anyhow!(\n                \"The transaction has more outputs than allowed by the consensus\"\n            ));\n        }\n\n        if arguments.fee_index as usize >= arguments.required_balances.len() {\n            return Err(anyhow::anyhow!(\"The fee address index is out of bounds\"));\n        }\n\n        if has_duplicates(&arguments.required_balances, |balance| {\n            (balance.asset_id, balance.account.owner())\n        }) {\n            return Err(anyhow::anyhow!(","sourceCodeStart":161,"sourceCodeEnd":197,"githubUrl":"https://github.com/FuelLabs/fuel-core/blob/b9d4d170da3a31c9ace5f963d633b326348e0d42/crates/fuel-core/src/schema/tx/assemble_tx.rs#L161-L197","documentation":"Error \"The transaction has more inputs than allowed by the consensus\" thrown in FuelLabs/fuel-core.","triggerScenarios":"Thrown at crates/fuel-core/src/schema/tx/assemble_tx.rs:179 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"}