fix: duplicate unspent again

This commit is contained in:
Rafael Saes 2023-12-08 19:44:57 -03:00
parent 6ea5c50884
commit 2c608d78ec

View file

@ -673,8 +673,7 @@ abstract class ElectrumWalletBase
if (tx.unspent != null) {
if (!unspentCoins.any((utx) =>
utx.hash.contains(tx.unspent!.hash) &&
utx.vout == tx.unspent!.vout &&
utx.address.contains(tx.to!))) {
utx.vout == tx.unspent!.vout)) {
unspentCoins.add(tx.unspent!);
}
}