Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
RunOnFluxBot committed Oct 28, 2024
1 parent 3444cfa commit e12abe3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions services/fluxNetworkHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -975,15 +975,16 @@ async function checkDeterministicNodesCollisions() {
}, 60 * 1000);
return;
}
} else if (nodeStatus.data.status === 'CONFIRMED' && nodeCollateralDifferentIp) {
}
if (nodeStatus.data.status === 'CONFIRMED' && nodeCollateralDifferentIp) {
let errorCall = false;
const askingIP = nodeCollateralDifferentIp.ip.split(':')[0];
const askingIpPort = nodeCollateralDifferentIp.ip.split(':')[1] || '16127';
await serviceHelper.axiosGet(`http://${askingIP}:${askingIpPort}/flux/version`, axiosConfig).catch(errorCall = true);
if (!errorCall) {
log.error('Flux collision detection. Another ip:port is confirmed and reachable on flux network with the same collateral transaction information.');
log.error(`Flux collision detection. Node at ${askingIP}:${askingIpPort} is confirmed and reachable on flux network with the same collateral transaction information.`);
dosState = 100;
setDosMessage('Flux collision detection. Another ip:port is confirmed and reachable on flux network with the same collateral transaction information.');
setDosMessage(`Flux collision detection. Node at ${askingIP}:${askingIpPort} is confirmed and reachable on flux network with the same collateral transaction information.`);
setTimeout(() => {
checkDeterministicNodesCollisions();
}, 60 * 1000);
Expand Down

0 comments on commit e12abe3

Please sign in to comment.