Skip to content

Commit

Permalink
Merge pull request #1270 from dappnode/pablo/start-dnp-in-ethclient-i…
Browse files Browse the repository at this point in the history
…nstaller

When switchin full node, start client if not running
  • Loading branch information
pablomendezroyo authored Nov 30, 2022
2 parents a182cb1 + 728b570 commit 5a3e936
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/dappmanager/src/daemons/ethMultiClient/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import {
} from "../../modules/ethClient";
import { isExecClient, isConsClient } from "../../modules/ethClient/utils";
import { getConsensusUserSettings } from "../../modules/stakerConfig/utils";
import { dockerComposeUpPackage } from "../../modules/docker";

/**
* Check status of the Ethereum client and do next actions
Expand All @@ -48,7 +49,9 @@ export async function runEthClientInstaller(
const dnp = await listPackageNoThrow({ dnpName: target });

if (dnp) {
// OK: Client is already installed
// OK: Client is already installed, ensure it's running
if (dnp.containers.some(c => !c.running))
await dockerComposeUpPackage({ dnpName: target }, {}, {}, true);
return { status: "INSTALLED" };
} else {
// Client is not installed
Expand Down

0 comments on commit 5a3e936

Please sign in to comment.