From f90959bf0976e9b790090cfb7abeb4dae241e099 Mon Sep 17 00:00:00 2001 From: timorleph Date: Fri, 10 Jan 2025 14:23:56 +0100 Subject: [PATCH] Display more information about the DAG status in logs --- Cargo.lock | 2 +- consensus/Cargo.toml | 2 +- consensus/src/runway/mod.rs | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f9417979..3904b3ac 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -28,7 +28,7 @@ dependencies = [ [[package]] name = "aleph-bft" -version = "0.40.0" +version = "0.40.1" dependencies = [ "aleph-bft-mock", "aleph-bft-rmc", diff --git a/consensus/Cargo.toml b/consensus/Cargo.toml index 609ae3c1..d3f321ff 100644 --- a/consensus/Cargo.toml +++ b/consensus/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "aleph-bft" -version = "0.40.0" +version = "0.40.1" edition = "2021" authors = ["Cardinal Cryptography"] categories = ["algorithms", "data-structures", "cryptography", "database"] diff --git a/consensus/src/runway/mod.rs b/consensus/src/runway/mod.rs index f42cfd39..a37eace3 100644 --- a/consensus/src/runway/mod.rs +++ b/consensus/src/runway/mod.rs @@ -187,6 +187,8 @@ impl<'a, H: Hasher> Display for RunwayStatus<'a, H> { if !self.missing_parents.is_empty() { write!(f, "; missing parents - {:?}", self.missing_parents)?; } + write!(f, ";reconstructed DAG: {}", self.store_status)?; + write!(f, ";additional information: {}", self.dag_status)?; write!(f, ".")?; Ok(()) }