mirror of
https://github.com/boldsuck/haveno.git
synced 2024-12-22 20:19:21 +00:00
arbitrator verifies offer not signed before
This commit is contained in:
parent
20f26ea623
commit
9fb5dfb788
1 changed files with 4 additions and 4 deletions
|
@ -1138,10 +1138,10 @@ public class OpenOfferManager implements PeerManager.Listener, DecryptedDirectMe
|
|||
}
|
||||
|
||||
// verify offer not seen before
|
||||
Optional<OpenOffer> 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<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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue