Skip to content

Commit 1532d5c

Browse files
committed
Move "Transition to {state}" log in the move_to_step function
1 parent 2b57200 commit 1532d5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/consensus/tendermint/worker.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,7 @@ impl Worker {
593593
}
594594

595595
fn move_to_step(&mut self, state: TendermintState, is_restoring: bool) {
596+
ctrace!(ENGINE, "Transition to {:?} triggered.", state);
596597
let prev_step = mem::replace(&mut self.step, state.clone());
597598
if !is_restoring {
598599
self.backup();
@@ -846,7 +847,6 @@ impl Worker {
846847
};
847848

848849
if let Some(step) = next_step {
849-
ctrace!(ENGINE, "Transition to {:?} triggered.", step);
850850
self.move_to_step(step, is_restoring);
851851
return
852852
}

0 commit comments

Comments
 (0)