arbitrator can re-sign offer

This commit is contained in:
woodser 2023-08-16 15:02:31 -04:00
parent f842a9856f
commit f08735e1e0

View file

@ -1148,15 +1148,6 @@ public class OpenOfferManager implements PeerManager.Listener, DecryptedDirectMe
return;
}
// verify offer not seen before
Optional<SignedOffer> 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;
}
// verify maker's trade fee
Offer offer = new Offer(request.getOfferPayload());
BigInteger tradeFee = HavenoUtils.getMakerFee(offer.getAmount());