feat: destruct a MARF into its Sqlite connection (i.e. for purposes of re-opening a StacksChainState)

This commit is contained in:
Jude Nelson
2023-10-02 15:48:46 -04:00
parent 8750d467fd
commit ac0187ea7b

View File

@@ -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()
}
}