Skip to content

Commit 5b981b6

Browse files
committed
Move send_snapshot_notify() before the early return
1 parent 10a3202 commit 5b981b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/consensus/tendermint/worker.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1645,6 +1645,8 @@ impl Worker {
16451645
}
16461646
};
16471647

1648+
self.send_snapshot_notify(c.as_ref(), enacted.as_slice());
1649+
16481650
if self.step.is_commit() && (imported.len() + enacted.len() == 1) {
16491651
let (_, committed_block_hash) = self.step.committed().expect("Commit state always has block_hash");
16501652
if imported.first() == Some(&committed_block_hash) {
@@ -1662,8 +1664,6 @@ impl Worker {
16621664
}
16631665
}
16641666

1665-
self.send_snapshot_notify(c.as_ref(), enacted.as_slice());
1666-
16671667
if let Some((last, rest)) = imported.split_last() {
16681668
let (imported, last_proposal_header) = {
16691669
let header =

0 commit comments

Comments
 (0)