Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
RunOnFluxBot committed Oct 29, 2024
1 parent a23bfa0 commit 91eaaed
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions services/fluxNetworkHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -990,17 +990,17 @@ async function checkDeterministicNodesCollisions() {
}, 60 * 1000);
return;
}
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) {
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) {
const daemonResult = await daemonServiceWalletRpcs.createConfirmationTransaction();
log.info(`createConfirmationTransaction: ${JSON.stringify(daemonResult)}`);
if (getDosMessage().includes('is confirmed and reachable on flux network')) {
dosState = 0;
setDosMessage(null);
}
}
const daemonResult = await daemonServiceWalletRpcs.createConfirmationTransaction();
log.info(`createConfirmationTransaction: ${JSON.stringify(daemonResult)}`);
}
}
// early stages of the network or testnet
Expand Down

0 comments on commit 91eaaed

Please sign in to comment.