mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-22 19:28:20 +00:00
ncli: fix inclusion distance statistic (#2587)
This commit is contained in:
parent
038102cb92
commit
584fcd50c1
@ -717,8 +717,6 @@ type
|
||||
# True if the validator had an attestation included in the _previous_ epoch.
|
||||
is_previous_epoch_attester*: Option[InclusionInfo]
|
||||
|
||||
inclusion_info*: Option[InclusionInfo]
|
||||
|
||||
# Total rewards and penalties for this validator
|
||||
delta*: RewardDelta
|
||||
|
||||
|
@ -497,8 +497,9 @@ proc cmdValidatorPerf(conf: DbConf, runtimePreset: RuntimePreset) =
|
||||
else:
|
||||
perf.first_slot_head_attester_when_first_slot_not_empty += 1
|
||||
|
||||
if s.inclusion_info.isSome():
|
||||
perf.delays.mGetOrPut(s.inclusion_info.get().delay, 0'u64) += 1
|
||||
if s.is_previous_epoch_attester.isSome():
|
||||
perf.delays.mGetOrPut(
|
||||
s.is_previous_epoch_attester.get().delay, 0'u64) += 1
|
||||
|
||||
else:
|
||||
perf.attestation_misses += 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user