Skip to content

Commit

Permalink
[mempool] move the qs callback to be after mempool
Browse files Browse the repository at this point in the history
  • Loading branch information
Zekun Li authored and zekun000 committed Sep 25, 2024
1 parent ce1cfd5 commit d5dbb86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consensus/src/state_computer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ impl StateComputer for ExecutionProxy {

let blocks = blocks.to_vec();
let wrapped_callback = move || {
payload_manager.notify_commit(block_timestamp, payloads);
callback(&blocks, finality_proof);
};
self.async_state_sync_notifier
Expand All @@ -324,7 +325,6 @@ impl StateComputer for ExecutionProxy {
.expect("Failed to send async state sync notification");

*latest_logical_time = logical_time;
payload_manager.notify_commit(block_timestamp, payloads);
Ok(())
}

Expand Down

0 comments on commit d5dbb86

Please sign in to comment.