mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
instead of assuming mint = confirmed, move logic down so isUnconfirmed has an exception
This commit is contained in:
parent
77b1e23144
commit
d3db4e6868
1 changed files with 6 additions and 4 deletions
|
@ -2418,9 +2418,7 @@ class FiroWallet extends CoinServiceAPI
|
|||
if (!jindexes!.contains(lelantusCoinsList[i].index) &&
|
||||
transactions
|
||||
.where((e) => e.txid == lelantusCoinsList[i].txId)
|
||||
.isEmpty &&
|
||||
mints.where((e) => e.txid == lelantusCoinsList[i].txId).isEmpty) {
|
||||
// TODO make sure that mints is filtered to remove unconfirmed tx
|
||||
.isEmpty) {
|
||||
isUnconfirmed = true;
|
||||
}
|
||||
|
||||
|
@ -2443,7 +2441,11 @@ class FiroWallet extends CoinServiceAPI
|
|||
}
|
||||
if (!lelantusCoinsList[i].isUsed &&
|
||||
lelantusCoinsList[i].anonymitySetId != ANONYMITY_SET_EMPTY_ID &&
|
||||
!isUnconfirmed) {
|
||||
(!isUnconfirmed ||
|
||||
mints
|
||||
.where((e) => e.txid == lelantusCoinsList[i].txId)
|
||||
.isNotEmpty)) {
|
||||
// TODO make sure that mints is filtered to remove unconfirmed tx
|
||||
coins.add(lelantusCoinsList[i]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue