mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-10 14:26:26 +00:00
valmon: log autoregistration once only (#3993)
This commit is contained in:
parent
b32ab88191
commit
c8fb447020
@ -244,6 +244,9 @@ proc addAutoMonitor*(
|
||||
if not self.autoRegister:
|
||||
return
|
||||
|
||||
if pubkey in self.monitors:
|
||||
return
|
||||
|
||||
# automatic monitors must be registered with index - we don't look for them in
|
||||
# the state
|
||||
self.addMonitor(pubkey, some(index))
|
||||
|
Loading…
x
Reference in New Issue
Block a user