There was an error while loading. Please reload this page.
2 parents b702aaa + 3b5c037 commit 07f67abCopy full SHA for 07f67ab
1 file changed
node/bft/src/helpers/dag.rs
@@ -116,6 +116,10 @@ impl<N: Network> DAG<N> {
116
// If a previous certificate existed for the author, log it.
117
match previous {
118
None => trace!("Added new certificate for round {round} by author {author} to the DAG"),
119
+ // Re-inserting the same certificate is a no-op from a consensus perspective.
120
+ Some(previous) if previous.id() == certificate_id => {
121
+ trace!("Certificate for round {round} by author {author} already existed in the DAG");
122
+ }
123
// A second certificate for one author in a round means the author equivocated. The
124
// DAG keeps whichever arrived last, so validators that saw both may now disagree.
125
Some(previous) => error!(
0 commit comments