mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +00:00
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:
parent
79706d51f5
commit
68bf6a6565
1 changed files with 7 additions and 0 deletions
|
@ -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 &&
|
||||
|
|
Loading…
Reference in a new issue