From 4985a5750d85701b7e7441b7bc42fc50eef17227 Mon Sep 17 00:00:00 2001 From: Cabecinha84 Date: Tue, 14 Jan 2025 09:47:02 +0000 Subject: [PATCH] update considered maintenance window --- ZelBack/src/services/fluxService.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ZelBack/src/services/fluxService.js b/ZelBack/src/services/fluxService.js index 55dba6927..feb32eeda 100644 --- a/ZelBack/src/services/fluxService.js +++ b/ZelBack/src/services/fluxService.js @@ -1654,8 +1654,8 @@ async function streamChainPreparation(req, res) { } // check if it is outside maintenance window - if (fluxNodeInfo.status === 'CONFIRMED' && fluxNodeInfo.last_confirmed_height > 0 && (120 - (blockCount - fluxNodeInfo.last_confirmed_height)) < 5) { - // fluxnodes needs to confirm between 120 and 150 blocks, if it is 4 blocks remaining to enter confirmation window we already consider outside maintenance window. + if (fluxNodeInfo.status === 'CONFIRMED' && fluxNodeInfo.last_confirmed_height > 0 && (120 - (blockCount - fluxNodeInfo.last_confirmed_height)) < 8) { + // fluxnodes needs to confirm between 120 and 150 blocks, if it is 7 blocks remaining to enter confirmation window we already consider outside maintenance window, as this can take around 12 minutes. res.statusMessage = 'Error Fluxnode is not in maintenance window.'; res.status(503).end(); return;