From 245dcc6083c189ea68ec5e5ec0ea4c4ac947b09b Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Sat, 15 Oct 2022 21:07:37 -0400 Subject: [PATCH] Have the wallet provide the Monero height for is_confirmed --- processor/src/wallet.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/processor/src/wallet.rs b/processor/src/wallet.rs index d12614fa..6cbdf39a 100644 --- a/processor/src/wallet.rs +++ b/processor/src/wallet.rs @@ -234,6 +234,11 @@ impl Wallet { self.coin.address(self.keys[self.keys.len() - 1].0.group_key()) } + // TODO: Remove + pub async fn is_confirmed(&mut self, tx: &[u8]) -> Result { + 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(());