File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -687,17 +687,16 @@ impl LocalStateMachine {
687
687
match new_miner {
688
688
StateMachineUpdateMinerState :: ActiveMiner {
689
689
current_miner_pkh, ..
690
- } => match sortition_state {
691
- Some ( sortition_state) => {
690
+ } => {
691
+ if let Some ( sortition_state) = sortition_state {
692
692
// if there is a mismatch between the new_miner ad the current sortition view, mark the current miner as invalid
693
693
if current_miner_pkh != sortition_state. cur_sortition . miner_pkh {
694
694
sortition_state. cur_sortition . miner_status =
695
695
SortitionMinerStatus :: InvalidatedBeforeFirstBlock
696
696
}
697
697
}
698
- None => ( ) ,
699
- } ,
700
- StateMachineUpdateMinerState :: NoValidMiner => { }
698
+ }
699
+ StateMachineUpdateMinerState :: NoValidMiner => ( ) ,
701
700
}
702
701
}
703
702
}
You can’t perform that action at this time.
0 commit comments