mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-11-02 05:27:17 +00:00
Wallet: Fix bug in cleanup() that sometimes would put foreign outputs in myUnspents when disconnecting. This wrongly increases the balance.
This commit is contained in:
@@ -2658,7 +2658,8 @@ public class Wallet extends BaseTaggableObject implements Serializable, BlockCha
|
||||
for (TransactionInput input : tx.getInputs()) {
|
||||
TransactionOutput output = input.getConnectedOutput();
|
||||
if (output == null) continue;
|
||||
myUnspents.add(output);
|
||||
if (output.isMineOrWatched(this))
|
||||
checkState(myUnspents.add(output));
|
||||
input.disconnect();
|
||||
}
|
||||
for (TransactionOutput output : tx.getOutputs())
|
||||
|
||||
Reference in New Issue
Block a user