mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-07-28 09:24:15 -04:00
support invalid offer state
This commit is contained in:
parent
7887c450c7
commit
0ea056104c
6 changed files with 12 additions and 3 deletions
|
@ -81,7 +81,8 @@ public class Offer implements NetworkPayload, PersistablePayload {
|
|||
AVAILABLE,
|
||||
NOT_AVAILABLE,
|
||||
REMOVED,
|
||||
MAKER_OFFLINE
|
||||
MAKER_OFFLINE,
|
||||
INVALID
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -54,7 +54,7 @@ public class ProcessOfferAvailabilityResponse extends Task<OfferAvailabilityMode
|
|||
|
||||
// verify maker signature for trade request
|
||||
if (!HavenoUtils.isMakerSignatureValid(model.getTradeRequest(), offerAvailabilityResponse.getMakerSignature(), offer.getPubKeyRing())) {
|
||||
offer.setState(Offer.State.UNKNOWN); // TODO: using as invalid state
|
||||
offer.setState(Offer.State.INVALID);
|
||||
failed("Take offer attempt failed because maker signature is invalid");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue