stop using template which Nim 2.0.10 will apparently make recursive

This commit is contained in:
tersec 2024-09-21 12:50:33 +00:00
parent 9a3b1f7ab9
commit b7f3f0c2e8
No known key found for this signature in database
GPG Key ID: 3D7A11A0156519DC
1 changed files with 1 additions and 2 deletions

View File

@ -777,8 +777,7 @@ proc cmdValidatorPerf(conf: DbConf, cfg: RuntimeConfig) =
indices
case info.kind
of EpochInfoFork.Phase0:
template info: untyped = info.phase0Data
for i, s in info.validators:
for i, s in info.phase0Data.validators:
let perf = addr perfs[i]
if RewardFlags.isActiveInPreviousEpoch in s.flags:
if s.is_previous_epoch_attester.isSome():