From a254222c3b1c4c8db937ce2ef52da826069dcd9d Mon Sep 17 00:00:00 2001 From: jairajdev Date: Sat, 11 May 2024 22:50:38 +0545 Subject: [PATCH] Remove crypto.sign from the debug api --- src/API.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/API.ts b/src/API.ts index eb3c4bc8..d168360a 100644 --- a/src/API.ts +++ b/src/API.ts @@ -203,7 +203,7 @@ export function registerRoutes(server: FastifyInstance { profilerInstance.profileSectionStart('removed') nestedCountersInstance.countEvent('consensor', 'removed') - reply.send(Crypto.sign({ removedAndApopedNodes: Cycles.removedAndApopedNodes })) + reply.send({ removedAndApopedNodes: Cycles.removedAndApopedNodes }) profilerInstance.profileSectionEnd('removed') } ) @@ -913,8 +913,7 @@ export function registerRoutes(server: FastifyInstance { - const res = Crypto.sign(config) - reply.send(res) + reply.send({ ...config, ARCHIVER_SECRET_KEY: '' }) // send the config without the secret key } ) @@ -935,8 +934,7 @@ export function registerRoutes(server: FastifyInstance item.nodeInfo.ip + ':' + item.nodeInfo.port ) - const res = Crypto.sign(data) - reply.send(res) + reply.send(data) } ) @@ -955,7 +953,7 @@ export function registerRoutes(server: FastifyInstance