Skip to content

Commit 6cd9dd7

Browse files
committed
Add index to filter
1 parent 674695f commit 6cd9dd7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Stratis.Bitcoin.Features.Wallet/WalletRPCController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ public UnspentCoinModel[] ListUnspent(int minConfirmations = 1, int maxConfirmat
785785

786786
// Check if the transaction is already in the list.
787787
// The node operator could be using the wallet for both "actual" and watch only accounts.
788-
if (unspentCoins.Any(u => u.Id == spendableTx.Transaction.Id))
788+
if (unspentCoins.Any(u => u.Id == spendableTx.Transaction.Id && u.Index == spendableTx.Transaction.Index))
789789
continue;
790790

791791
unspentCoins.Add(new UnspentCoinModel()

0 commit comments

Comments
 (0)