valmon: log autoregistration once only (#3993)

This commit is contained in:
Jacek Sieka 2022-08-19 01:09:49 +02:00 committed by GitHub
parent b32ab88191
commit c8fb447020
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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))