Skip to content

Commit ef53833

Browse files
Byeongjee Kangmajecty
authored andcommitted
Report double votes found in commit messages
1 parent b13bd2a commit ef53833

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/src/consensus/tendermint/worker.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -954,6 +954,7 @@ impl Worker {
954954
if !self.votes.is_old_or_known(&message) {
955955
if let Err(double_vote) = self.votes.collect(message) {
956956
cerror!(ENGINE, "Double vote found on_commit_message: {:?}", double_vote);
957+
self.report_double_vote(&double_vote);
957958
}
958959
}
959960
}
@@ -2163,6 +2164,7 @@ impl Worker {
21632164
if !self.votes.is_old_or_known(&vote) {
21642165
if let Err(double_vote) = self.votes.collect(vote) {
21652166
cerror!(ENGINE, "Double vote found on_commit_message: {:?}", double_vote);
2167+
self.report_double_vote(&double_vote);
21662168
}
21672169
}
21682170
}

0 commit comments

Comments
 (0)