Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle another 3h upgrade case where node is not synced #323

Merged
merged 2 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading