-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement validators performance tracker (#329)
* implement validators perforamnce * add seconds per slot * fix db initialize * remove sync comitee rewards and block proposal * add table name prop * add slots per epoch * update naming * add slot nullish * Start cron at the beggining pf the epoch (#331) * start cron at the beggining of the epoch * add comment * add delete table method (#335) * add block proposal duties into db (#336) * add block proposal duties into db * remove unnecesary log * Save validator indexes in db (#337) * save validator indexes in db * fix comment * write on db * add update in db * fix lint issue * fix lint issue * add get table size in bytes * reorganize code (#338) * add engine 20.11.0 * Reorg track validators performance cron (#340) * Add log prefix * reorg code * simplify code get active validator indexes --------- Co-authored-by: Marc Font <[email protected]>
- Loading branch information
1 parent
8d9bd72
commit f162d7d
Showing
35 changed files
with
881 additions
and
343 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,8 @@ export const gnosisBrainConfig = ( | |
shareCronInterval: 24 * 60 * 60 * 1000, // 1 day in ms | ||
minGenesisTime: 1638968400, // Dec 8, 2021, 13:00 UTC | ||
postgresUrl: "postgres://postgres:[email protected]:5432/web3signer-gnosis", | ||
secondsPerSlot: 5, | ||
slotsPerEpoch: 16, | ||
tlsCert: tlsCert(consensusClientSelected) | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,8 @@ export const holeskyBrainConfig = ( | |
shareCronInterval: 24 * 60 * 60 * 1000, // 1 day in ms | ||
minGenesisTime: 1695902100, // Sep-28-2023 11:55:00 +UTC | ||
postgresUrl: "postgres://postgres:[email protected]:5432/web3signer", | ||
secondsPerSlot: 12, | ||
slotsPerEpoch: 32, | ||
tlsCert: tlsCert(consensusClientSelected) | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,8 @@ export const luksoBrainConfig = ( | |
shareCronInterval: 24 * 60 * 60 * 1000, // 1 day in ms | ||
minGenesisTime: 1684856400, // Tuesday, 23 May 2023 15:40:00 GMT | ||
postgresUrl: "postgres://postgres:[email protected]:5432/web3signer", | ||
secondsPerSlot: 12, | ||
slotsPerEpoch: 32, | ||
tlsCert: tlsCert(consensusClientSelected) | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,8 @@ export const mainnetBrainConfig = ( | |
shareCronInterval: 24 * 60 * 60 * 1000, // 1 day in ms | ||
minGenesisTime: 1606824000, | ||
postgresUrl: "postgres://postgres:[email protected]:5432/web3signer-mainnet", | ||
secondsPerSlot: 12, | ||
slotsPerEpoch: 32, | ||
tlsCert: tlsCert(consensusClientSelected) | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,8 @@ export const praterBrainConfig = ( | |
shareCronInterval: 24 * 60 * 60 * 1000, // 1 day in ms | ||
minGenesisTime: 1614588812, // Mar-01-2021 08:53:32 AM +UTC | ||
postgresUrl: "postgres://postgres:[email protected]:5432/web3signer", | ||
secondsPerSlot: 12, | ||
slotsPerEpoch: 32, | ||
tlsCert: tlsCert(consensusClientSelected) | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export { CronJob } from "./cron.js"; | ||
export { reloadValidators } from "./reloadValidators.js"; | ||
export { sendProofsOfValidation } from "./sendProofsOfValidation.js"; | ||
export { reloadValidators } from "./reloadValidators/index.js"; | ||
export { sendProofsOfValidation } from "./sendProofsOfValidation/index.js"; | ||
export { trackValidatorsPerformance, getSecondsToNextEpoch } from "./trackValidatorsPerformance/index.js"; |
Oops, something went wrong.