Skip to content

Commit

Permalink
ADD: SSV DKG service (stereum-dev#1865)
Browse files Browse the repository at this point in the history
* update the fetching

* fix the new api for the testers

* Revert "fix the new api for the testers"

This reverts commit ab01562.

* Revert "update the fetching"

This reverts commit b5a052c.

* Fix the nuke modal animation

* Revert "Fix the nuke modal animation"

This reverts commit 3c5b547.

* ADD Icons for dkg ssv

* ADD: backend services

* REFACTOR: alpha DKG implementation

* ADD: ssv dkg modal to the service modals

* ADD input box to the ssd dkg

* ADD: DKG generator to the ssv dkg modal

* REFACTOR: SSV DKG release

---------

Co-authored-by: daverolo <[email protected]>
  • Loading branch information
mabasian and daverolo authored May 15, 2024
1 parent 65f76f5 commit 49eb9af
Show file tree
Hide file tree
Showing 23 changed files with 2,930 additions and 1,437 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2,894 changes: 1,497 additions & 1,397 deletions launcher/public/output.css

Large diffs are not rendered by default.

421 changes: 421 additions & 0 deletions launcher/src/backend/NodeConnection.js

Large diffs are not rendered by default.

58 changes: 38 additions & 20 deletions launcher/src/backend/OneClickInstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,25 +265,39 @@ export class OneClickInstall {

if (constellation.includes("ValidatorEjectorService")) {
//ValidatorEjectorService
this.extraServices.push(this.serviceManager.getService("ValidatorEjectorService", {
...args,
consensusClients: [this.beaconService],
executionClients: [this.executionClient],
}));
this.extraServices.push(
this.serviceManager.getService("ValidatorEjectorService", {
...args,
consensusClients: [this.beaconService],
executionClients: [this.executionClient],
})
);
}

if (constellation.includes("LidoObolExitService")) {
//LidoObolExitService
this.extraServices.push(this.serviceManager.getService("LidoObolExitService", {
this.extraServices.push(
this.serviceManager.getService("LidoObolExitService", {
...args,
consensusClients: [this.beaconService].concat(
this.extraServices.filter((s) => s.service === "CharonService")
),
otherServices: this.extraServices.filter((s) => s.service === "ValidatorEjectorService"),
})
);
}

if (constellation.includes("SSVDKGService")) {
let SSVDKGService = this.serviceManager.getService("SSVDKGService", {
...args,
consensusClients: [this.beaconService].concat(this.extraServices.filter((s) => s.service === "CharonService")),
otherServices: this.extraServices.filter((s) => s.service === "ValidatorEjectorService"),
}));
consensusClients: [this.beaconService],
otherServices: this.validatorService === "SSVNetworkService" ? [this.validatorService] : [],
});
this.extraServices.push(SSVDKGService);
}

this.handleArchiveTags(selectedPreset);


let versions;
try {
versions = await this.nodeConnection.nodeUpdates.checkUpdates();
Expand Down Expand Up @@ -339,10 +353,11 @@ export class OneClickInstall {
case "NethermindService":
this.executionClient.command[this.executionClient.command.findIndex((c) => c.includes("--config"))] +=
"_archive";
this.executionClient.command[
this.executionClient.command.findIndex((c) => c.includes("--Pruning.Mode="))
] = "--Pruning.Mode=None";
this.executionClient.command = this.executionClient.command.filter((c) => !c.includes("--Pruning.FullPruningTrigger"));
this.executionClient.command[this.executionClient.command.findIndex((c) => c.includes("--Pruning.Mode="))] =
"--Pruning.Mode=None";
this.executionClient.command = this.executionClient.command.filter(
(c) => !c.includes("--Pruning.FullPruningTrigger")
);
break;
}
switch (this.beaconService.service) {
Expand All @@ -353,18 +368,17 @@ export class OneClickInstall {
this.beaconService.command = this.beaconService.command.filter((c) => !c.includes("--checkpointSyncUrl"));
break;
case "NimbusBeaconService":
if (this.beaconService.command.some(c => c.includes("--trusted-node-url="))) {
this.beaconService.command.push("--backfill=true")
if (this.beaconService.command.some((c) => c.includes("--trusted-node-url="))) {
this.beaconService.command.push("--backfill=true");
}
this.beaconService.command.push("--history=archive")
this.beaconService.command.push("--history=archive");
break;
case "PrysmBeaconService":
this.beaconService.command += " --slots-per-archive-point=32";
break;
case "TekuBeaconService":
this.beaconService.command[
this.beaconService.command.findIndex((c) => c.includes("--data-storage-mode"))
] = "--data-storage-mode=archive";
this.beaconService.command[this.beaconService.command.findIndex((c) => c.includes("--data-storage-mode"))] =
"--data-storage-mode=archive";
}
}
}
Expand All @@ -391,6 +405,7 @@ export class OneClickInstall {
})
);
await this.serviceManager.createKeystores(this.needsKeystore);
await this.serviceManager.prepareSSVDKG(this.extraServices.find((s) => s.service === "SSVDKGService"));
return configs;
}
}
Expand Down Expand Up @@ -481,6 +496,9 @@ export class OneClickInstall {
"NotificationService",
];
services.push("LidoObolExitService", "CharonService", "ValidatorEjectorService", "FlashbotsMevBoostService");
break;
case "lidossv":
services.push("SSVNetworkService", "SSVDKGService");
}
return services;
}
Expand Down
Loading

0 comments on commit 49eb9af

Please sign in to comment.