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

Method get_committed_state

fendermint/app/src/app.rs:260–264  ·  view source on GitHub ↗

Get the last committed state, if exists.

(&self)

Source from the content-addressed store, hash-verified

258
259 /// Get the last committed state, if exists.
260 fn get_committed_state(&self) -> Result<Option<AppState>> {
261 let tx = self.db.read();
262 tx.get(&self.namespace, &AppStoreKey::State)
263 .context("get failed")
264 }
265
266 /// Get the last committed state; return error if it doesn't exist.
267 fn committed_state(&self) -> Result<AppState> {

Callers 3

init_committed_stateMethod · 0.80
committed_stateMethod · 0.80

Calls 3

contextMethod · 0.80
readMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected