|
|
@ -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');
|
|
|
|