MCPcopy Create free account
hub / github.com/base/base / commit

Method commit

crates/execution/trie/src/db/batch.rs:41–46  ·  view source on GitHub ↗
(mut self)

Source from the content-addressed store, hash-verified

39 }
40
41 pub(crate) fn commit(mut self) -> BaseProofsStorageResult<()> {
42 if let Some(tx) = self.tx.take() {
43 tx.commit()?;
44 }
45 Ok(())
46 }
47
48 fn tx_ref(&self) -> BaseProofsStorageResult<&<DatabaseEnv as Database>::TXMut> {
49 self.tx.as_ref().ok_or(BaseProofsStorageError::BatchSessionClosed)

Calls 1

takeMethod · 0.45