From 9fb5dfb78885435e85aac701e243993389dd9e9f Mon Sep 17 00:00:00 2001 From: woodser Date: Tue, 15 Aug 2023 15:53:12 -0400 Subject: [PATCH] arbitrator verifies offer not signed before --- .../src/main/java/haveno/core/offer/OpenOfferManager.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/haveno/core/offer/OpenOfferManager.java b/core/src/main/java/haveno/core/offer/OpenOfferManager.java index 50d4dad975..e0d9a4def7 100644 --- a/core/src/main/java/haveno/core/offer/OpenOfferManager.java +++ b/core/src/main/java/haveno/core/offer/OpenOfferManager.java @@ -1138,10 +1138,10 @@ public class OpenOfferManager implements PeerManager.Listener, DecryptedDirectMe } // verify offer not seen before - Optional openOfferOptional = getOpenOfferById(request.offerId); // TODO: check if offer is on books, not open offer - if (openOfferOptional.isPresent()) { - errorMessage = "We already got a request to sign offer id " + request.offerId; - log.info(errorMessage); + Optional signedOfferOptional = getSignedOfferById(request.offerId); + if (signedOfferOptional.isPresent()) { + errorMessage = "We already signed offer id " + request.offerId; + log.warn(errorMessage); sendAckMessage(request.getClass(), peer, request.getPubKeyRing(), request.getOfferId(), request.getUid(), false, errorMessage); return; }