From 64b08eda473247902b3c26cf33610630dd1f4cb2 Mon Sep 17 00:00:00 2001 From: Yael Doweck 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 12ba86891a6..8be0d381254 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)); }