From d8ef2c83710341500cd983698fef9674e795f02e Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 7 Mar 2023 13:30:30 +0530 Subject: [PATCH] print login block size when it exceeds the maximum --- lib/workers/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/workers/index.js b/lib/workers/index.js index 96cb0e795..d97f52225 100644 --- a/lib/workers/index.js +++ b/lib/workers/index.js @@ -475,6 +475,10 @@ Workers.initialize = function (Env, config, _cb) { Env.validateLoginBlock = function (publicKey, signature, block, cb) { if (!block || !block.length || block.length > Block.MAX_SIZE) { return void setTimeout(function () { + Env.Log.error('E_INVALID_BLOCK_SIZE', { + size: block.length, + }); + cb('E_INVALID_BLOCK_SIZE'); }); }