arbitrator verifies offer not signed before
This commit is contained in:
parent
20f26ea623
commit
9fb5dfb788
@ -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 New Issue
Block a user