{"record":{"id":"23688a7d78da0605","repo":"linera-io/linera-protocol","slug":"the-local-node-is-behind-the-trusted-state-in-wall","errorCode":null,"errorMessage":"The local node is behind the trusted state in wallet and needs synchronization with validators","messagePattern":"The local node is behind the trusted state in wallet and needs synchronization with validators","errorType":"validation","errorClass":"ChainClientError","httpStatus":null,"severity":"error","filePath":"linera-core/src/client/chain_client/mod.rs","lineNumber":642,"sourceCode":"        if self.options.message_policy.is_ignore() {\n            // Ignore all messages.\n            return Ok(Vec::new());\n        }\n\n        let query = ChainInfoQuery::new(self.chain_id).with_pending_message_bundles();\n        let info = self\n            .client\n            .local_node\n            .handle_chain_info_query(query)\n            .await?\n            .info;\n        if self.preferred_owner.is_some_and(|owner| {\n            info.manager\n                .ownership\n                .is_super_owner_no_regular_owners(&owner)\n        }) {\n            // There are only super owners; they are expected to sync manually.\n            ensure!(\n                info.next_block_height >= self.initial_next_block_height,\n                Error::WalletSynchronizationError\n            );\n        }\n\n        let skipped = self.skipped_origins.pin();\n        let mut bundles = info\n            .requested_pending_message_bundles\n            .into_iter()\n            .filter_map(|bundle| bundle.apply_policy(&self.options.message_policy))\n            .filter(|bundle| !skipped.contains(&bundle.origin))\n            .collect::<Vec<_>>();\n        let priority_origins = &self.options.priority_bundle_origins;\n        bundles.sort_by(|a, b| {\n            let a_priority = priority_origins.contains(&a.origin);\n            let b_priority = priority_origins.contains(&b.origin);\n            b_priority\n                .cmp(&a_priority)","sourceCodeStart":624,"sourceCodeEnd":660,"githubUrl":"https://github.com/linera-io/linera-protocol/blob/6c226ddcb332ef55118dc8d0aafbd093d5420899/linera-core/src/client/chain_client/mod.rs#L624-L660","documentation":"Error \"The local node is behind the trusted state in wallet and needs synchronization with validators\" thrown in linera-io/linera-protocol.","triggerScenarios":"The wallet's trusted state (block height) is ahead of the local node's synchronized state for the chain.","commonSituations":"Running a client command after the node restarted or fell behind; requires synchronizing with validators before proceeding.","solutions":["Run `linera sync` against the validators to bring the local node up to the trusted wallet state before retrying the operation.","Verify the wallet was not copied from a newer node; if it was, sync with validators until local state catches up.","Check network connectivity to the validators and retry synchronization once reachable."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6c226ddcb332ef55118dc8d0aafbd093d5420899","analyzedAt":"2026-08-22T22:49:09.787Z","schemaVersion":2},"datasetVersion":"2026-08-23T01:17:44.959Z"}