Skip to content
6 changes: 6 additions & 0 deletions crates/common/trie/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ impl InMemoryTrieDB {
}
}

// Do not remove or make private as we use this in ethrex-replay
pub fn from_nodes(
root_hash: H256,
state_nodes: &BTreeMap<H256, NodeRLP>,
Expand All @@ -82,6 +83,11 @@ impl InMemoryTrieDB {
None => path,
}
}

// Do not remove or make private as we use this in ethrex-replay
pub fn inner(&self) -> NodeMap {
Arc::clone(&self.inner)
}
}

impl TrieDB for InMemoryTrieDB {
Expand Down
Loading