log messages which fail signature validation

pull/1/head
ansuz 4 years ago
parent 75a1d7617d
commit eea0688879

@ -963,7 +963,11 @@ HK.onChannelMessage = function (Env, Server, channel, msgStruct, cb) {
// validation can fail in multiple ways // validation can fail in multiple ways
if (err === 'FAILED') { if (err === 'FAILED') {
// we log this case, but not others for some reason // we log this case, but not others for some reason
Log.info("HK_SIGNED_MESSAGE_REJECTED", 'Channel '+channel.id); Log.info("HK_SIGNED_MESSAGE_REJECTED", {
channel: channel.id,
validateKey: metadata.validayKey,
message: signedMsg,
});
} }
// always abort if there was an error... // always abort if there was an error...
cb('FAILED_VALIDATION'); cb('FAILED_VALIDATION');

Loading…
Cancel
Save