valmon: fix `--validator-monitor-totals` feature (#3286)

Else log size explodes for machines with many validators
This commit is contained in:
Jacek Sieka 2022-01-14 15:57:46 +01:00 committed by GitHub
parent 142e0ea163
commit 167068e739
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -301,7 +301,7 @@ proc init*(T: type BeaconNode,
let let
validatorMonitor = newClone(ValidatorMonitor.init( validatorMonitor = newClone(ValidatorMonitor.init(
config.validatorMonitorAuto)) config.validatorMonitorAuto, config.validatorMonitorTotals))
for key in config.validatorMonitorPubkeys: for key in config.validatorMonitorPubkeys:
validatorMonitor[].addMonitor(key, none(ValidatorIndex)) validatorMonitor[].addMonitor(key, none(ValidatorIndex))