mirror of
https://github.com/boldsuck/haveno.git
synced 2024-12-23 04:29:22 +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
|
// verify offer not seen before
|
||||||
Optional<OpenOffer> openOfferOptional = getOpenOfferById(request.offerId); // TODO: check if offer is on books, not open offer
|
Optional<SignedOffer> signedOfferOptional = getSignedOfferById(request.offerId);
|
||||||
if (openOfferOptional.isPresent()) {
|
if (signedOfferOptional.isPresent()) {
|
||||||
errorMessage = "We already got a request to sign offer id " + request.offerId;
|
errorMessage = "We already signed offer id " + request.offerId;
|
||||||
log.info(errorMessage);
|
log.warn(errorMessage);
|
||||||
sendAckMessage(request.getClass(), peer, request.getPubKeyRing(), request.getOfferId(), request.getUid(), false, errorMessage);
|
sendAckMessage(request.getClass(), peer, request.getPubKeyRing(), request.getOfferId(), request.getUid(), false, errorMessage);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue