From 09001ad18a8e9d30b0c43ba290defb9c43cfa22d Mon Sep 17 00:00:00 2001 From: elizabeth Date: Fri, 4 Oct 2024 16:37:26 -0400 Subject: [PATCH] add comment --- crates/astria-sequencer/src/app/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/astria-sequencer/src/app/mod.rs b/crates/astria-sequencer/src/app/mod.rs index fca9bc5d5..688c6c1ec 100644 --- a/crates/astria-sequencer/src/app/mod.rs +++ b/crates/astria-sequencer/src/app/mod.rs @@ -662,6 +662,10 @@ impl App { self.metrics .set_transactions_in_mempool_total(self.mempool.len().await); + // XXX: we need to unwrap the app's state arc to write + // to the ephemeral store. + // this is okay as we should have the only reference to the state + // at this point. let mut state_tx = Arc::try_begin_transaction(&mut self.state) .expect("state Arc should not be referenced elsewhere"); state_tx.object_put(EXECUTION_RESULTS_KEY, execution_results);