[wallet] Expose an immutable reference to a wallet's database
This commit is contained in:
parent
2892edf94b
commit
12e51b3c06
@ -1447,6 +1447,11 @@ where
|
|||||||
|
|
||||||
Ok(())
|
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>
|
impl<B, D> Wallet<B, D>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user