From b8dd53b7ba3f330333f40fe35f95873e9bb6a0ab Mon Sep 17 00:00:00 2001 From: Nazar Mokrynskyi Date: Fri, 24 May 2024 08:52:44 +0300 Subject: [PATCH] Fix genesis hash --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/backend/farmer/direct_node_client.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 74dbfcc1..ec17585c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -11189,7 +11189,7 @@ dependencies = [ [[package]] name = "space-acres" -version = "0.1.20" +version = "0.1.21" dependencies = [ "anyhow", "arc-swap", diff --git a/Cargo.toml b/Cargo.toml index 381dbf7d..79a8f79d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "space-acres" description = "Space Acres is an opinionated GUI application for farming on Subspace Network" license = "0BSD" -version = "0.1.20" +version = "0.1.21" authors = ["Nazar Mokrynskyi "] repository = "https://github.com/subspace/space-acres" edition = "2021" diff --git a/src/backend/farmer/direct_node_client.rs b/src/backend/farmer/direct_node_client.rs index aa9fc14e..82434a63 100644 --- a/src/backend/farmer/direct_node_client.rs +++ b/src/backend/farmer/direct_node_client.rs @@ -138,7 +138,7 @@ where pub fn new(config: NodeClientConfig) -> Result { let info = config.client.info(); let best_hash = info.best_hash; - let genesis_hash = BlockHash::try_from(best_hash.as_ref().to_vec()) + let genesis_hash = BlockHash::try_from(info.genesis_hash.as_ref()) .expect("Genesis hash must always be convertable into BlockHash; qed"); let runtime_api = config.client.runtime_api(); let chain_constants = runtime_api.chain_constants(best_hash)?;