mirror of
https://github.com/serai-dex/serai.git
synced 2025-01-03 17:40:34 +00:00
Have the wallet provide the Monero height for is_confirmed
This commit is contained in:
parent
826e27c80e
commit
245dcc6083
1 changed files with 5 additions and 0 deletions
|
@ -234,6 +234,11 @@ impl<D: CoinDb, C: Coin> Wallet<D, C> {
|
|||
self.coin.address(self.keys[self.keys.len() - 1].0.group_key())
|
||||
}
|
||||
|
||||
// TODO: Remove
|
||||
pub async fn is_confirmed(&mut self, tx: &[u8]) -> Result<bool, CoinError> {
|
||||
self.coin.is_confirmed(tx, self.scanned_height + C::CONFIRMATIONS)
|
||||
}
|
||||
|
||||
pub async fn poll(&mut self) -> Result<(), CoinError> {
|
||||
if self.coin.get_height().await? < C::CONFIRMATIONS {
|
||||
return Ok(());
|
||||
|
|
Loading…
Reference in a new issue