mirror of
https://github.com/retoaccess1/haveno-reto.git
synced 2024-11-13 22:53:37 +01:00
log details on invalid maker signature
This commit is contained in:
parent
d9b983b0fb
commit
9661e6fba8
@ -377,7 +377,14 @@ public class HavenoUtils {
|
|||||||
String tradeRequestAsJson = JsonUtil.objectToJson(signedRequest);
|
String tradeRequestAsJson = JsonUtil.objectToJson(signedRequest);
|
||||||
|
|
||||||
// verify maker signature
|
// 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 New Issue
Block a user