From f2953b10da8a118f8edc3123c96d68222f2140b9 Mon Sep 17 00:00:00 2001 From: jackzhhuang Date: Thu, 16 Jan 2025 10:15:58 +0800 Subject: [PATCH] fx sort tip logic and typo --- config/src/miner_config.rs | 2 +- flexidag/src/blockdag.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/src/miner_config.rs b/config/src/miner_config.rs index e69f54bdbb..1411905452 100644 --- a/config/src/miner_config.rs +++ b/config/src/miner_config.rs @@ -38,7 +38,7 @@ pub struct MinerConfig { base: Option>, #[serde(skip_serializing_if = "Option::is_none")] - #[clap(long = "maximum-parents_count")] + #[clap(long = "maximum-parents-count")] pub maximum_parents_count: Option, } diff --git a/flexidag/src/blockdag.rs b/flexidag/src/blockdag.rs index 09ad68138c..885bc4dc08 100644 --- a/flexidag/src/blockdag.rs +++ b/flexidag/src/blockdag.rs @@ -676,7 +676,7 @@ impl BlockDAG { let b_blue_work = self .storage .ghost_dag_store - .get_blue_work(*a) + .get_blue_work(*b) .unwrap_or_else(|e| { panic!( "the ghostdag data should be existed for {:?}, e: {:?}",