Skip to content

Commit

Permalink
stop using template which Nim 2.0.10 will apparently make recursive
Browse files Browse the repository at this point in the history
  • Loading branch information
tersec committed Sep 21, 2024
1 parent 9a3b1f7 commit b7f3f0c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ncli/ncli_db.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit b7f3f0c

Please sign in to comment.