You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: track epoch transition steps time in metrics (#6143)
* feat: track epoch transition steps time in metrics
* feat: also track beforeProcessEpoch and afterProcessEpoch
* fix: do not need to time simple steps in processEpoch
* fix: incorporate to single metric with step label
* fix: pass metrics to processEpoch()
* chore: use separate timer for each epoch transition step
* chore: use blocks to separate timers
---------
Co-authored-by: Cayman <caymannava@gmail.com>
// state.slashings is initially a Gwei (BigInt) vector, however since Nov 2023 it's converted to UintNum64 (number) vector in the state transition because:
55
61
// - state.slashings[nextEpoch % EPOCHS_PER_SLASHINGS_VECTOR] is reset per epoch in processSlashingsReset()
56
62
// - max slashed validators per epoch is SLOTS_PER_EPOCH * MAX_ATTESTER_SLASHINGS * MAX_VALIDATORS_PER_COMMITTEE which is 32 * 2 * 2048 = 131072 on mainnet
@@ -59,19 +65,53 @@ export function processEpoch(fork: ForkSeq, state: CachedBeaconStateAllForks, ca
59
65
thrownewError("Lodestar does not support this network, parameters don't fit number value inside state.slashings");
0 commit comments