Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
RunOnFluxBot committed Jan 10, 2025
1 parent 5dc52e8 commit bda6487
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/fluxService.js
Original file line number Diff line number Diff line change
Expand Up @@ -1781,7 +1781,7 @@ async function streamChain(req, res) {
log.info(`Stream chain request received from: ${ip}`);

const homeDir = os.homedir();
const base = path.join(homeDir, '.flux');
const base = process.env.FLUXD_PATH || path.join(homeDir, '.flux');

// the order can matter when doing the stream live, the level db's can be volatile
const folders = [
Expand All @@ -1803,7 +1803,7 @@ async function streamChain(req, res) {
const chainExists = foldersExist.every((x) => x);

if (!chainExists) {
res.statusMessage = 'Unable to find chain at $HOME/.flux';
res.statusMessage = 'Unable to find chain';
res.status(500).end();
return;
}
Expand Down

0 comments on commit bda6487

Please sign in to comment.