Remove if case for old clients

Remove null check for dispute

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
HenrikJannsen 2022-11-02 22:51:39 -05:00
parent 97648c51f3
commit 7f5675f054
No known key found for this signature in database
GPG key ID: 02AA2BAE387C8307

View file

@ -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,