From 68bf6a6565f5c6e29995e89e14bf218ee7b2e604 Mon Sep 17 00:00:00 2001 From: sneurlax Date: Thu, 16 Mar 2023 15:31:36 -0500 Subject: [PATCH] add mint/anonymization txs to balance currently breaks when a mint/anonymization tx is correctly recognized as a send but not correctly recognized as isUsed --- lib/services/coins/firo/firo_wallet.dart | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/services/coins/firo/firo_wallet.dart b/lib/services/coins/firo/firo_wallet.dart index e7b0451a4..cb5b124a1 100644 --- a/lib/services/coins/firo/firo_wallet.dart +++ b/lib/services/coins/firo/firo_wallet.dart @@ -2460,7 +2460,14 @@ class FiroWallet extends CoinServiceAPI with WalletCache, WalletDB, FiroHive { // Logging.instance.log("$value $tx $ltx"); if (!jindexes!.contains(value.index) && tx == null) { + if (!value.isUsed && + ltx != null && + ltx.isConfirmed(currentChainHeight, MINIMUM_CONFIRMATIONS)) { + // mint tx, add value to balance + intLelantusBalance += value.value; + } /* else { // This coin is not confirmed and may be replaced + }*/ } else if (jindexes.contains(value.index) && tx == null && !value.isUsed &&