mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-10-01 01:35:48 -04:00
log when offer's signing arbitrator is unavailable
This commit is contained in:
parent
f852217945
commit
c2b816e5f0
@ -1693,7 +1693,10 @@ public class OpenOfferManager implements PeerManager.Listener, DecryptedDirectMe
|
|||||||
// determine if offer is valid
|
// determine if offer is valid
|
||||||
boolean isValid = true;
|
boolean isValid = true;
|
||||||
Arbitrator arbitrator = user.getAcceptedArbitratorByAddress(openOffer.getOffer().getOfferPayload().getArbitratorSigner());
|
Arbitrator arbitrator = user.getAcceptedArbitratorByAddress(openOffer.getOffer().getOfferPayload().getArbitratorSigner());
|
||||||
if (arbitrator == null || !HavenoUtils.isArbitratorSignatureValid(openOffer.getOffer().getOfferPayload(), arbitrator)) {
|
if (arbitrator == null) {
|
||||||
|
log.warn("Offer {} signed by unavailable arbitrator, reposting", openOffer.getId());
|
||||||
|
isValid = false;
|
||||||
|
} else if (!HavenoUtils.isArbitratorSignatureValid(openOffer.getOffer().getOfferPayload(), arbitrator)) {
|
||||||
log.warn("Offer {} has invalid arbitrator signature, reposting", openOffer.getId());
|
log.warn("Offer {} has invalid arbitrator signature, reposting", openOffer.getId());
|
||||||
isValid = false;
|
isValid = false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user