From a23bfa0f0986c2133a855bba471f2d7768480d9d Mon Sep 17 00:00:00 2001 From: RunOnFlux Date: Tue, 29 Oct 2024 11:17:05 +0000 Subject: [PATCH] Update from https://github.com/RunOnFlux/flux/commit/01edccf4e1b165f267f08868cb78e56f31859b17 --- services/fluxNetworkHelper.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/services/fluxNetworkHelper.js b/services/fluxNetworkHelper.js index 00495f50..22300c04 100644 --- a/services/fluxNetworkHelper.js +++ b/services/fluxNetworkHelper.js @@ -989,9 +989,15 @@ async function checkDeterministicNodesCollisions() { checkDeterministicNodesCollisions(); }, 60 * 1000); return; - } if (getDosMessage().includes('is confirmed and reachable on flux network')) { - dosState = 0; - setDosMessage(null); + } + if (getDosMessage().includes('is confirmed and reachable on flux network')) { + errorCall = false; + await serviceHelper.delay(60 * 1000); // 60s await to double check the other machine is really offline or it just restarted or restarted fluxOs + await serviceHelper.axiosGet(`http://${askingIP}:${askingIpPort}/flux/version`, axiosConfig).catch(errorCall = true); + if (errorCall) { + dosState = 0; + setDosMessage(null); + } } const daemonResult = await daemonServiceWalletRpcs.createConfirmationTransaction(); log.info(`createConfirmationTransaction: ${JSON.stringify(daemonResult)}`);