{"record":{"id":"ddd1f808a7aa07e4","repo":"FuelLabs/fuel-core","slug":"historical-execution-is-required-for-this-oper","errorCode":null,"errorMessage":"`--historical-execution` is required for this operation","messagePattern":"`--historical-execution` is required for this operation","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/fuel-core/src/schema/tx.rs","lineNumber":600,"sourceCode":"        gas_price: Option<U64>,\n        // This can be used to run the dry-run on top of a past block.\n        // Requires `--historical-execution` flag to be enabled.\n        block_height: Option<U32>,\n    ) -> async_graphql::Result<DryRunStorageReads> {\n        self.dry_run_inner(ctx, txs, utxo_validation, gas_price, block_height, true)\n            .await\n    }\n\n    /// Get execution trace for an already-executed block.\n    #[graphql(complexity = \"query_costs().storage_read_replay + child_complexity\")]\n    async fn storage_read_replay(\n        &self,\n        ctx: &Context<'_>,\n        height: U32,\n    ) -> async_graphql::Result<Vec<StorageReadReplayEvent>> {\n        let config = ctx.data_unchecked::<GraphQLConfig>();\n        if !config.historical_execution {\n            return Err(anyhow::anyhow!(\n                \"`--historical-execution` is required for this operation\"\n            )\n            .into());\n        }\n\n        let block_height = height.into();\n        let block_producer = ctx.data_unchecked::<BlockProducer>();\n        Ok(block_producer\n            .storage_read_replay(block_height)\n            .await?\n            .into_iter()\n            .map(StorageReadReplayEvent::from)\n            .collect())\n    }\n}\n\n#[derive(Default)]\npub struct TxMutation;","sourceCodeStart":582,"sourceCodeEnd":618,"githubUrl":"https://github.com/FuelLabs/fuel-core/blob/b9d4d170da3a31c9ace5f963d633b326348e0d42/crates/fuel-core/src/schema/tx.rs#L582-L618","documentation":"Error \"`--historical-execution` is required for this operation\" thrown in FuelLabs/fuel-core.","triggerScenarios":"Thrown at crates/fuel-core/src/schema/tx.rs:600 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"}