mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-05-28 23:20:55 +08:00
feat: destruct a MARF into its Sqlite connection (i.e. for purposes of re-opening a StacksChainState)
This commit is contained in:
@@ -1545,4 +1545,9 @@ impl<T: MarfTrieId> MARF<T> {
|
||||
pub fn get_root_hash_at(&mut self, block_hash: &T) -> Result<TrieHash, Error> {
|
||||
self.storage.connection().get_root_hash_at(block_hash)
|
||||
}
|
||||
|
||||
/// Convert to the inner sqlite connection
|
||||
pub fn into_sqlite_conn(self) -> Connection {
|
||||
self.storage.into_sqlite_conn()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user