From c2b816e5f08c2e2bbcbde6a63c4b8e92617a0b2e Mon Sep 17 00:00:00 2001 From: woodser Date: Tue, 9 Jul 2024 09:27:59 -0400 Subject: [PATCH] log when offer's signing arbitrator is unavailable --- core/src/main/java/haveno/core/offer/OpenOfferManager.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/haveno/core/offer/OpenOfferManager.java b/core/src/main/java/haveno/core/offer/OpenOfferManager.java index 5f3dad92fd..e18d06ae9d 100644 --- a/core/src/main/java/haveno/core/offer/OpenOfferManager.java +++ b/core/src/main/java/haveno/core/offer/OpenOfferManager.java @@ -1693,7 +1693,10 @@ public class OpenOfferManager implements PeerManager.Listener, DecryptedDirectMe // determine if offer is valid boolean isValid = true; Arbitrator arbitrator = user.getAcceptedArbitratorByAddress(openOffer.getOffer().getOfferPayload().getArbitratorSigner()); - if (arbitrator == null || !HavenoUtils.isArbitratorSignatureValid(openOffer.getOffer().getOfferPayload(), arbitrator)) { + if (arbitrator == null) { + log.warn("Offer {} signed by unavailable arbitrator, reposting", openOffer.getId()); + isValid = false; + } else if (!HavenoUtils.isArbitratorSignatureValid(openOffer.getOffer().getOfferPayload(), arbitrator)) { log.warn("Offer {} has invalid arbitrator signature, reposting", openOffer.getId()); isValid = false; }