Skip to content

Commit

Permalink
Merge pull request #323 from autonomys/improve-3h-upgrade-handling
Browse files Browse the repository at this point in the history
Handle another 3h upgrade case where node is not synced
  • Loading branch information
nazar-pc authored Nov 7, 2024
2 parents 177ac3d + 8bd7438 commit 1392969
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "space-acres"
description = "Space Acres is an opinionated GUI application for farming on Autonomys Network"
license = "0BSD"
version = "0.2.0"
version = "0.2.1"
authors = ["Nazar Mokrynskyi <[email protected]>"]
repository = "https://github.com/autonomys/space-acres"
edition = "2021"
Expand Down
8 changes: 6 additions & 2 deletions src/backend/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -527,11 +527,14 @@ pub(super) async fn create_consensus_node(
let partial_components = match partial_components_result {
Ok(partial_components) => partial_components,
Err(error) => {
error!(?error, "Failed to build a full subspace node");
// TODO: This is a workaround to what and how initialization does, remove this at
// some point in the future once upgrade from Gemini networks is no longer needed
if error.to_string().contains(
"env:ext_fraud_proof_runtime_interface_derive_bundle_digest_version_2",
) {
) || error.to_string().contains(
"State already discarded for 0x0c121c75f4ef450f40619e1fca9d1e8e7fbabc42c895bc4790801e85d5a91c34",
) {
return Err(ConsensusNodeCreationError::IncompatibleChain {
compatible_chain: consensus_chain_config.base.chain_spec.name().to_string(),
});
Expand Down Expand Up @@ -568,7 +571,8 @@ pub(super) async fn create_consensus_node(
)
.await
.map_err(|error| {
sc_service::Error::Other(format!("Failed to build a full subspace node 3: {error:?}"))
error!(?error, "Failed to build a full subspace node 2");
sc_service::Error::Other(format!("Failed to build a full subspace node 2: {error:?}"))
})?;

let direct_node_client = DirectNodeClient::new(NodeClientConfig {
Expand Down

0 comments on commit 1392969

Please sign in to comment.