mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-23 11:48:33 +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.
|
# True if the validator had an attestation included in the _previous_ epoch.
|
||||||
is_previous_epoch_attester*: Option[InclusionInfo]
|
is_previous_epoch_attester*: Option[InclusionInfo]
|
||||||
|
|
||||||
inclusion_info*: Option[InclusionInfo]
|
|
||||||
|
|
||||||
# Total rewards and penalties for this validator
|
# Total rewards and penalties for this validator
|
||||||
delta*: RewardDelta
|
delta*: RewardDelta
|
||||||
|
|
||||||
|
@ -497,8 +497,9 @@ proc cmdValidatorPerf(conf: DbConf, runtimePreset: RuntimePreset) =
|
|||||||
else:
|
else:
|
||||||
perf.first_slot_head_attester_when_first_slot_not_empty += 1
|
perf.first_slot_head_attester_when_first_slot_not_empty += 1
|
||||||
|
|
||||||
if s.inclusion_info.isSome():
|
if s.is_previous_epoch_attester.isSome():
|
||||||
perf.delays.mGetOrPut(s.inclusion_info.get().delay, 0'u64) += 1
|
perf.delays.mGetOrPut(
|
||||||
|
s.is_previous_epoch_attester.get().delay, 0'u64) += 1
|
||||||
|
|
||||||
else:
|
else:
|
||||||
perf.attestation_misses += 1;
|
perf.attestation_misses += 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user