{"record":{"id":"fa802a85783e9ed5","repo":"nautechsystems/nautilus_trader","slug":"no-durable-store-configured-refusing-to-submit-a","errorCode":null,"errorMessage":"No durable store configured; refusing to submit a transaction","messagePattern":"No durable store configured; refusing to submit a transaction","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"critical","filePath":"crates/adapters/blockchain/src/execution/client.rs","lineNumber":963,"sourceCode":"        PayloadKeySet::load(\n            self.config.payload_key_env.as_deref(),\n            &self.config.payload_key_retired_env,\n            self.config.payload_deployment_id.as_deref(),\n        )\n    }\n\n    fn payload_policy(&self) -> PayloadPolicy {\n        PayloadPolicy {\n            chain_id: self.chain.chain_id,\n            signer: self.wallet_address,\n            gas_limit: self.config.gas_limit,\n            max_fee_per_gas: self.config.max_fee_per_gas_wei,\n        }\n    }\n\n    fn transaction_executor(&self) -> anyhow::Result<TransactionExecutor> {\n        let database = self.cache.database.clone().ok_or_else(|| {\n            anyhow::anyhow!(\"No durable store configured; refusing to submit a transaction\")\n        })?;\n        let signer = self\n            .signer\n            .clone()\n            .ok_or_else(|| anyhow::anyhow!(\"Signer not initialized; connect the client first\"))?;\n        let payload_keys = self.payload_keys.clone().ok_or_else(|| {\n            anyhow::anyhow!(\"Protected payload keys are not initialized; connect the client first\")\n        })?;\n        let verification_config = self\n            .config\n            .verification\n            .as_ref()\n            .expect(\"verification config validated at construction\");\n        let identities = std::iter::once(&verification_config.authoritative)\n            .chain(\n                verification_config\n                    .verifiers\n                    .iter()","sourceCodeStart":945,"sourceCodeEnd":981,"githubUrl":"https://github.com/nautechsystems/nautilus_trader/blob/18893faf8b356be3320add8de2f861b0b647cf06/crates/adapters/blockchain/src/execution/client.rs#L945-L981","documentation":"transaction_executor() assembles the components needed to submit any on-chain transaction (wrap, approve, order submission, reconciliation). It requires cache.database (the durable store used to persist execution intents before submission) to be present; without durable persistence the client refuses to submit, since an in-flight transaction could become unreconcilable on crash.","triggerScenarios":"Calling wrap(), approve(), submit_order(), or reconcile_unresolved_execution() on a client whose cache.database is None (no durable store configured and no Postgres cache config active).","commonSituations":"Running the execution client without Postgres cache configuration in live mode; forgetting to enable the cache database before sending orders; a config where only in-memory caching was requested.","solutions":["Configure the durable cache database (postgres_cache_database_config) before connecting the client.","Verify the client's connect() path populated cache.database; if not, fix cache configuration.","Do not attempt live transaction submission with an ephemeral/in-memory-only cache.","Check startup logs/config loading to confirm the database was constructed."],"exampleFix":"// before\nlet config = ExecutionClientConfig { cache: CacheConfig::in_memory(), .. };\nclient.submit_order(order).await?;\n// after\nlet config = ExecutionClientConfig {\n    postgres_cache_database_config: Some(pg_config),\n    ..Default::default()\n};\nclient.connect().await?; // initializes cache.database\nclient.submit_order(order).await?;","handlingStrategy":"validation","validationCode":"anyhow::ensure!(\n    config.postgres_cache_database_config.is_some() || client.has_durable_cache(),\n    \"configure a durable store before transaction submission\"\n);","typeGuard":null,"tryCatchPattern":"match client.submit_order(order).await {\n    Err(e) if e.to_string().contains(\"No durable store configured\") => {\n        return Err(anyhow::anyhow!(\n            \"refusing to trade: durable cache database is required in live mode\"\n        ));\n    }\n    other => other,\n}","preventionTips":["Never run live transaction submission without a Postgres cache database.","Assert database presence during strategy startup, before the trading loop.","Treat missing durable store as a fatal config error in live environments."],"tags":["rust","blockchain","configuration","transactions","durability"],"backgroundTag":"missing-required-config-field","analyzedSha":"18893faf8b356be3320add8de2f861b0b647cf06","analyzedAt":"2026-09-08T20:49:34.690Z","contentChangedAt":"2026-09-08T20:49:34.690Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}