From fa9a96ed12580a18a81db67276eafb7a0fc2468a Mon Sep 17 00:00:00 2001 From: RunOnFlux Date: Fri, 22 Nov 2024 11:48:43 +0000 Subject: [PATCH] Update from https://github.com/RunOnFlux/flux/commit/23f9ff748a0f0226837ec018588d80045377089f --- services/hostInfoService.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/hostInfoService.js b/services/hostInfoService.js index c1d0cf82..9cba5b1d 100644 --- a/services/hostInfoService.js +++ b/services/hostInfoService.js @@ -25,14 +25,15 @@ async function getHostInfo(req, res) { res.json(errMessage); } else { const hostInfo = {}; - hostInfo.id = await generalService.nodeCollateral(); + const nodeCollateralInfo = await generalService.getCollateralInfo(); + hostInfo.id = nodeCollateralInfo.txhash + nodeCollateralInfo.txindex; const myIP = await fluxNetworkHelper.getMyFluxIPandPort(); hostInfo.ip = myIP.split(':')[0]; const myGeo = await geolocationService.getNodeGeolocation(); if (myGeo) { delete myGeo.ip; delete myGeo.org; - hostInfo.geo = JSON.stringify(myGeo); + hostInfo.geo = myGeo; } else { throw new Error('Geolocation information not available at the moment'); }