From ae5a26d36a2d1268b250272e6e13eac4ce1aba7c Mon Sep 17 00:00:00 2001 From: Yael Doweck <yael@starkware.co> Date: Wed, 4 Dec 2024 15:45:51 +0200 Subject: [PATCH] feat(consensus): calculate the executable_transaction in consensus_context --- .../src/sequencer_consensus_context.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/sequencing/papyrus_consensus_orchestrator/src/sequencer_consensus_context.rs b/crates/sequencing/papyrus_consensus_orchestrator/src/sequencer_consensus_context.rs index 12ba86891a..8be0d38125 100644 --- a/crates/sequencing/papyrus_consensus_orchestrator/src/sequencer_consensus_context.rs +++ b/crates/sequencing/papyrus_consensus_orchestrator/src/sequencer_consensus_context.rs @@ -397,7 +397,7 @@ impl SequencerConsensusContext { let notify_clone = Arc::clone(¬ify); let chain_id = self.chain_id.clone(); - let handle = tokio::spawn( + let handle = tokio::spawn({ async move { let validate_fut = stream_validate_proposal( height, @@ -417,8 +417,8 @@ impl SequencerConsensusContext { } } } - .instrument(debug_span!("consensus_validate_proposal")), - ); + .instrument(debug_span!("consensus_validate_proposal")) + }); self.active_proposal = Some((notify, handle)); }