File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
core/src/consensus/tendermint Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments