mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 15:10:44 +01:00
Remove if case for old clients
Remove null check for dispute Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
parent
97648c51f3
commit
7f5675f054
1 changed files with 3 additions and 9 deletions
|
@ -95,15 +95,9 @@ public class DisputeValidation {
|
||||||
String delayedPayoutTxOutputAddress = address.toString();
|
String delayedPayoutTxOutputAddress = address.toString();
|
||||||
validateDonationAddressMatchesAnyPastParamValues(dispute, delayedPayoutTxOutputAddress, daoFacade);
|
validateDonationAddressMatchesAnyPastParamValues(dispute, delayedPayoutTxOutputAddress, daoFacade);
|
||||||
|
|
||||||
if (dispute != null) {
|
// Verify that address in the dispute matches the one in the trade.
|
||||||
// Verify that address in the dispute matches the one in the trade.
|
checkArgument(delayedPayoutTxOutputAddress.equals(dispute.getDonationAddressOfDelayedPayoutTx()),
|
||||||
String donationAddressOfDelayedPayoutTx = dispute.getDonationAddressOfDelayedPayoutTx();
|
"donationAddressOfDelayedPayoutTx from dispute does not match address from delayed payout tx");
|
||||||
// Old clients don't have it set yet. Can be removed after a forced update
|
|
||||||
if (donationAddressOfDelayedPayoutTx != null) {
|
|
||||||
checkArgument(delayedPayoutTxOutputAddress.equals(donationAddressOfDelayedPayoutTx),
|
|
||||||
"donationAddressOfDelayedPayoutTx from dispute does not match address from delayed payout tx");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void testIfAnyDisputeTriedReplay(List<Dispute> disputeList,
|
public static void testIfAnyDisputeTriedReplay(List<Dispute> disputeList,
|
||||||
|
|
Loading…
Add table
Reference in a new issue