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

Method take_root_node

crates/proof/executor/src/db/mod.rs:69–71  ·  view source on GitHub ↗

Consumes `Self` and takes the current state root of the trie DB.

(self)

Source from the content-addressed store, hash-verified

67
68 /// Consumes `Self` and takes the current state root of the trie DB.
69 pub fn take_root_node(self) -> TrieNode {
70 self.root_node
71 }
72
73 /// Returns a shared reference to the root [`TrieNode`] of the trie DB.
74 pub const fn root(&self) -> &TrieNode {

Callers 1

Calls

no outgoing calls

Tested by 1