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
This commit is contained in:
sneurlax 2023-03-16 15:31:36 -05:00
parent 79706d51f5
commit 68bf6a6565

View file

@ -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 &&