Skip to content

Commit

Permalink
Add index to filter
Browse files Browse the repository at this point in the history
  • Loading branch information
fassadlr committed Sep 6, 2022
1 parent 674695f commit 6cd9dd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Stratis.Bitcoin.Features.Wallet/WalletRPCController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ public UnspentCoinModel[] ListUnspent(int minConfirmations = 1, int maxConfirmat

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

unspentCoins.Add(new UnspentCoinModel()
Expand Down

0 comments on commit 6cd9dd7

Please sign in to comment.