Skip to content

Commit

Permalink
ADD: devnet services monitoring & image for prysm & ignore validator …
Browse files Browse the repository at this point in the history
…list
  • Loading branch information
gbayasgalan committed Sep 6, 2024
1 parent c76aeb2 commit 8b7c5ee
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
4 changes: 4 additions & 0 deletions launcher/src/backend/ethereum-services/GethService.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ export class GethService extends NodeService {
"--allow-insecure-unlock",
"--nodiscover",
"--syncmode=full",
"--metrics",
"--metrics.expensive",
"--metrics.port=6060",
"--metrics.addr=0.0.0.0",
]
: [
`--${network}`,
Expand Down
6 changes: 3 additions & 3 deletions launcher/src/backend/ethereum-services/PrysmBeaconService.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ export class PrysmBeaconService extends NodeService {
`--datadir=${dataDir}`,
"--min-sync-peers=0",
`--genesis-state=${genesisDir}/genesis.ssz`,
"--bootstrap-node=",
"--interop-eth1data-votes",
`--chain-config-file=${configYamlDir}/config.yml`,
"--contract-deployment-block=0",
Expand All @@ -74,7 +73,8 @@ export class PrysmBeaconService extends NodeService {
`--jwt-secret=${JWTDir}`,
"--suggested-fee-recipient=0x123463a4b065722e99115d6c222f267d9cabb524",
"--minimum-peers-per-subnet=0",
"--enable-debug-rpc-endpoints",
"--monitoring-host=0.0.0.0",
"--monitoring-port=8080",
"--force-clear-db",
]
: [
Expand All @@ -98,7 +98,7 @@ export class PrysmBeaconService extends NodeService {
service.id, //id
1, // configVersion
image, //image
"v5.1.0", //imageVersion
network === "devnet" ? "v5.0.4" : "v5.1.0", //imageVersion
cmd, // command
["/app/cmd/beacon-chain/beacon-chain"], //entrypoint
null, //env
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ export class PrysmValidatorService extends NodeService {
"--interop-num-validators=64",
"--interop-start-index=0",
`--chain-config-file=${configYamlDir}/config.yml`,
"--monitoring-host=0.0.0.0",
"--monitoring-port=8081",
"--force-clear-db",
]
: [
Expand Down Expand Up @@ -79,7 +81,7 @@ export class PrysmValidatorService extends NodeService {
service.id, //id
1, // configVersion
image, //image
"v5.1.0", //imageVersion
network === "devnet" ? "v5.0.4" : "v5.1.0", //imageVersion
cmd, //command
["/app/cmd/validator/validator"], // entrypoint
null, // env
Expand Down
4 changes: 2 additions & 2 deletions launcher/src/composables/validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ export async function useListKeys(forceRefresh) {

let keyStats = [];
let clients = serviceStore.installedServices.filter(
(s) => s.category == "validator" && s.service != "CharonService" && s.service != "SSVNetworkService"
(s) => s.category == "validator" && s.config.network != "devnet" && s.service != "CharonService" && s.service != "SSVNetworkService"
);
if ((clients && clients.length > 0 && nodeManageStore.currentNetwork?.network != "") || forceRefresh) {
for (let client of clients) {
//if there is already a list of keys ()
if ((client.config.keys === undefined || client.config.keys.length === 0 || forceRefresh) && client.state === "running") {
//refresh validaotr list
//refresh validator list
let result = await ControlService.listValidators(client.config.serviceID);

if (!client.service.includes("Web3Signer")) {
Expand Down

0 comments on commit 8b7c5ee

Please sign in to comment.