[wallet] Expose an immutable reference to a wallet's database

This commit is contained in:
Alekos Filini committed 2021-11-10 12:29:58 +01:00
1 parent 2892edf94b
commit 12e51b3c06
1 file changed
+5
+5
View File
@@ -1447,6 +1447,11 @@ where
Ok(())
}
/// Return an immutable reference to the internal database
pub fn database(&self) -> impl std::ops::Deref<Target = D> + '_ {
self.database.borrow()
}
}
impl<B, D> Wallet<B, D>