Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
a little more BFT tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
rphmeier committed May 8, 2018
1 parent 5217626 commit 23fa70f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions substrate/bft/src/generic/accumulator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ impl<Candidate, Digest, AuthorityId, Signature> Accumulator<Candidate, Digest, A
count.committed += 1;

if count.committed >= self.threshold {
trace!(target: "bft", "observed threshold-commit for round {} with {} commits", self.round_number, count.committed);
Some(digest)
} else {
None
Expand Down
1 change: 1 addition & 0 deletions substrate/bft/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ impl<P, I> BftService<P, I>

let n = authorities.len();
let max_faulty = max_faulty_of(n);
trace!(target: "bft", "max_faulty_of({})={}", n, max_faulty);

let local_id = self.key.public().0;

Expand Down

0 comments on commit 23fa70f

Please sign in to comment.