From b321a536c76bf6211b69c5851986c872a87384a4 Mon Sep 17 00:00:00 2001 From: max143672 Date: Fri, 1 Sep 2023 16:17:03 +0400 Subject: [PATCH] fixes after rebase --- Cargo.lock | 1 - consensus/core/src/config/params.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 35864910e..a1458a367 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2571,7 +2571,6 @@ dependencies = [ "itertools 0.10.5", "kaspa-addressmanager", "kaspa-connectionmanager", - "kaspa-consensus", "kaspa-consensus-core", "kaspa-consensus-notify", "kaspa-consensusmanager", diff --git a/consensus/core/src/config/params.rs b/consensus/core/src/config/params.rs index 976f6b787..b22797773 100644 --- a/consensus/core/src/config/params.rs +++ b/consensus/core/src/config/params.rs @@ -215,7 +215,7 @@ impl Params { } pub fn finality_duration(&self) -> u64 { - self.target_time_per_block * self.finality_depth + self.daa_window_params.target_time_per_block * self.finality_depth } }