mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Offers from a banned node should not be displayed.
This commit is contained in:
parent
75e030f541
commit
b67b2eb11d
@ -255,7 +255,8 @@ public class OfferBook {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean isOfferAllowed(Offer offer) {
|
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()
|
boolean isV3NodeAddressCompliant = !OfferRestrictions.requiresNodeAddressUpdate()
|
||||||
|| Utils.isV3Address(offer.getMakerNodeAddress().getHostName());
|
|| Utils.isV3Address(offer.getMakerNodeAddress().getHostName());
|
||||||
return !isBanned && isV3NodeAddressCompliant;
|
return !isBanned && isV3NodeAddressCompliant;
|
||||||
|
Loading…
Reference in New Issue
Block a user