From d5dbb8642c6405059fb44b9ef011430b7015a308 Mon Sep 17 00:00:00 2001 From: Zekun Li Date: Wed, 25 Sep 2024 13:52:05 -0700 Subject: [PATCH] [mempool] move the qs callback to be after mempool --- consensus/src/state_computer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consensus/src/state_computer.rs b/consensus/src/state_computer.rs index 0038929bbfac7..b06d254aea429 100644 --- a/consensus/src/state_computer.rs +++ b/consensus/src/state_computer.rs @@ -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 @@ -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(()) }