Offers from a banned node should not be displayed.

This commit is contained in:
jmacxx 2022-10-04 20:34:16 -05:00
parent 75e030f541
commit b67b2eb11d
No known key found for this signature in database
GPG Key ID: 155297BABFE94A1B

View File

@ -255,7 +255,8 @@ public class OfferBook {
}
private boolean isOfferAllowed(Offer offer) {
boolean isBanned = filterManager.isOfferIdBanned(offer.getId());
boolean isBanned = filterManager.isOfferIdBanned(offer.getId())
|| filterManager.isNodeAddressBanned(offer.getMakerNodeAddress());
boolean isV3NodeAddressCompliant = !OfferRestrictions.requiresNodeAddressUpdate()
|| Utils.isV3Address(offer.getMakerNodeAddress().getHostName());
return !isBanned && isV3NodeAddressCompliant;