Remove addressAsString null check. That was when the donationAddress got added to support not updated nodes. Now there are none of such nodes.

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
HenrikJannsen 2022-11-02 22:48:55 -05:00
parent 710dba9f36
commit 0bf44f061d
No known key found for this signature in database
GPG key ID: 02AA2BAE387C8307

View file

@ -67,11 +67,6 @@ public class DisputeValidation {
public static void validateDonationAddress(Dispute dispute, String addressAsString, DaoFacade daoFacade)
throws AddressException {
if (addressAsString == null) {
log.debug("address is null at validateDonationAddress. This is expected in case of an not updated trader.");
return;
}
Set<String> allPastParamValues = daoFacade.getAllDonationAddresses();
if (!allPastParamValues.contains(addressAsString)) {
String errorMsg = "Donation address is not a valid DAO donation address." +