MCPcopy Create free account
hub / github.com/ChainSafe/Delorean-Protocol / take_exec_state

Method take_exec_state

fendermint/app/src/app.rs:310–313  ·  view source on GitHub ↗

Take the execution state during block execution. Has to be non-empty.

(&self)

Source from the content-addressed store, hash-verified

308
309 /// Take the execution state during block execution. Has to be non-empty.
310 async fn take_exec_state(&self) -> FvmExecState<SS> {
311 let mut guard = self.exec_state.lock().await;
312 guard.take().expect("exec state empty")
313 }
314
315 /// Take the execution state, update it, put it back, return the output.
316 async fn modify_exec_state<T, F, R>(&self, f: F) -> Result<T>

Callers 1

finalize_blockMethod · 0.45

Calls 1

takeMethod · 0.80

Tested by

no test coverage detected