mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-11-17 00:07:49 +00:00
log details on invalid maker signature
This commit is contained in:
parent
d9b983b0fb
commit
9661e6fba8
1 changed files with 8 additions and 1 deletions
|
@ -377,7 +377,14 @@ public class HavenoUtils {
|
|||
String tradeRequestAsJson = JsonUtil.objectToJson(signedRequest);
|
||||
|
||||
// verify maker signature
|
||||
return isSignatureValid(makerPubKeyRing, tradeRequestAsJson, signature);
|
||||
boolean isSignatureValid = isSignatureValid(makerPubKeyRing, tradeRequestAsJson, signature);
|
||||
if (!isSignatureValid) {
|
||||
log.warn("Invalid maker signature for trade request: " + request.getTradeId() + " from " + request.getSenderNodeAddress().getAddressForDisplay());
|
||||
log.warn("Trade request as json: " + tradeRequestAsJson);
|
||||
log.warn("Maker pub key ring: " + (makerPubKeyRing == null ? null : "..."));
|
||||
log.warn("Maker signature: " + (signature == null ? null : Utilities.bytesAsHexString(signature)));
|
||||
}
|
||||
return isSignatureValid;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue