Skip to content

Commit b13bd2a

Browse files
Byeongjee Kangmajecty
authored andcommitted
Rename double vote variable
Some DoubleVote type variables should be renamed for consistency.
1 parent cd542de commit b13bd2a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

core/src/consensus/tendermint/worker.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1430,9 +1430,9 @@ impl Worker {
14301430
self.votes_received.set(vote_index);
14311431
}
14321432

1433-
if let Err(double) = self.votes.collect(message.clone()) {
1434-
cerror!(ENGINE, "Double vote found {:?}", double);
1435-
self.report_double_vote(&double);
1433+
if let Err(double_vote) = self.votes.collect(message.clone()) {
1434+
cerror!(ENGINE, "Double vote found {:?}", double_vote);
1435+
self.report_double_vote(&double_vote);
14361436
return Err(EngineError::DoubleVote(sender))
14371437
}
14381438
ctrace!(ENGINE, "Handling a valid {:?} from {}.", message, sender);
@@ -1823,9 +1823,9 @@ impl Worker {
18231823
);
18241824
}
18251825

1826-
if let Err(double) = self.votes.collect(message) {
1827-
cerror!(ENGINE, "Double Vote found {:?}", double);
1828-
self.report_double_vote(&double);
1826+
if let Err(double_vote) = self.votes.collect(message) {
1827+
cerror!(ENGINE, "Double Vote found {:?}", double_vote);
1828+
self.report_double_vote(&double_vote);
18291829
return None
18301830
}
18311831
}

0 commit comments

Comments
 (0)