Wallet: Fix printing the same transaction twice when two pending transactions double spend each other are seen.

This commit is contained in:
Andreas Schildbach 2015-10-14 15:56:25 +02:00
parent bb9c93c9b1
commit 52b9623262

View file

@ -2088,7 +2088,7 @@ public class Wallet extends BaseTaggableObject
log.warn(" offending input is input {}", tx.getInputs().indexOf(input));
log.warn("{}: {}", tx.getHash(), Utils.HEX.encode(tx.unsafeBitcoinSerialize()));
Transaction other = output.getSpentBy().getParentTransaction();
log.warn("{}: {}", other.getHash(), Utils.HEX.encode(tx.unsafeBitcoinSerialize()));
log.warn("{}: {}", other.getHash(), Utils.HEX.encode(other.unsafeBitcoinSerialize()));
}
} else if (result == TransactionInput.ConnectionResult.SUCCESS) {
// Otherwise we saw a transaction spend our coins, but we didn't try and spend them ourselves yet.