Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
61 changes: 32 additions & 29 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions node/bft/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,16 @@ workspace = true
[dependencies.rayon]
workspace = true

[dependencies.serde]
workspace = true
features = [ "derive" ]

[dependencies.serde_json]
workspace = true

[dependencies.once_cell]
version = "1.0"

[dependencies.sha2]
version = "0.10"
default-features = false
Expand Down
3 changes: 3 additions & 0 deletions node/bft/src/bft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,9 @@ impl<N: Network> BFT<N> {
// Insert the certificate into the DAG.
self.dag.write().insert(certificate);

// Record the certificate added event
crate::helpers::record_event(certificate_round, crate::helpers::ConsensusStage::CertificateAdded, None);

// Get the previous round number.
let commit_round = certificate_round.saturating_sub(1);

Expand Down
3 changes: 3 additions & 0 deletions node/bft/src/helpers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ pub use telemetry::*;
pub mod timestamp;
pub use timestamp::*;

pub mod timing;
pub use timing::*;

/// Formats an ID into a truncated identifier (for logging purposes).
pub fn fmt_id(id: impl ToString) -> String {
let id = id.to_string();
Expand Down
Loading