Skip to content

Commit

Permalink
build our own client to avoid cache
Browse files Browse the repository at this point in the history
  • Loading branch information
MorningLightMountain713 committed Jan 10, 2025
1 parent ad90ae1 commit 921f7c4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ZelBack/src/services/fluxService.js
Original file line number Diff line number Diff line change
Expand Up @@ -1800,8 +1800,9 @@ async function streamChain(req, res) {
}

if (safe) {
const blockInfoRes = await daemonServiceBlockchainRpcs.getBlockchainInfo();
fluxdRunning = !(blockInfoRes.status === 'error' && blockInfoRes.data.code === 'ECONNREFUSED');
const fluxdClient = await daemonServiceUtils.buildFluxdClient();
const blockCountRes = await fluxdClient.run('getBlockCount', { params: [] }).catch((err) => err);
fluxdRunning = !(blockCountRes instanceof Error && blockCountRes.code === 'ECONNREFUSED');
}

if (safe && fluxdRunning) {
Expand Down

0 comments on commit 921f7c4

Please sign in to comment.