Skip to content

Commit

Permalink
MODIFY: clients for op presets
Browse files Browse the repository at this point in the history
  • Loading branch information
gbayasgalan committed Feb 6, 2025
1 parent 3433342 commit 2f71631
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions launcher/src/backend/OneClickInstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,21 @@ export class OneClickInstall {
services.push(selectedCC_VC + "ValidatorService");
services.push(selectedCC_VC + "BeaconService");

const selectedEC = setup === "optimism" ? this.chooseClient(["GETH", "RETH"]) : this.chooseClient(["GETH", "BESU", "NETHERMIND"]);
const selectedEC = (() => {
switch (setup) {
case "op full node":
return this.chooseClient([]);
case "op node archive":
return this.chooseClient([]);
default:
return this.chooseClient(["GETH", "BESU", "NETHERMIND"]);
}
})();

// const selectedEC =
// setup === "op full node"
// ? this.chooseClient(["GETH", "RETH", "NETHERMIND", "BESU", "ERIGON"])
// : this.chooseClient(["GETH", "BESU", "NETHERMIND"]);

services.push(selectedEC + "Service");

Expand Down Expand Up @@ -589,8 +603,18 @@ export class OneClickInstall {
case "lidocsm":
services.push("FlashbotsMevBoostService", "KeysAPIService", "ValidatorEjectorService", "KuboIPFSService", "LCOMService");
break;
case "optimism":
services.push("OpGethService", "OpNodeBeaconService", "L2GethService");
case "op full node":
services.push("OpGethService", "OpNodeBeaconService");
break;
case "op and eth full node":
services.push("OpGethService", "OpNodeBeaconService");
break;
case "op node archive":
services.push("OpGethService", "OpNodeBeaconService");
break;
case "op and eth node archive":
services.push("OpGethService", "OpNodeBeaconService");
break;
}
return services;
}
Expand Down

0 comments on commit 2f71631

Please sign in to comment.