Skip to content

Commit

Permalink
Merge pull request #6369 from jmacxx/hide_offers_banned_node
Browse files Browse the repository at this point in the history
Offers from a banned node should not be displayed
  • Loading branch information
ripcurlx authored Oct 5, 2022
2 parents 75e030f + b67b2eb commit 3fc43a8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,8 @@ public Map<String, Integer> getSellOfferCountMap() {
}

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;
Expand Down

0 comments on commit 3fc43a8

Please sign in to comment.