More decoupling, removed unnecessary announceCache

This commit is contained in:
Kevin 2020-07-26 21:45:17 -05:00
parent fad5e8547e
commit 080f33bf1f
5 changed files with 10 additions and 12 deletions

View file

@ -44,8 +44,7 @@ def announce_node(daemon):
if daemon.config.get('general.security_level', 0) == 0:
# Announce to random online peers
for i in kv.get('onlinePeers'):
if i not in kv.get('announceCache') and\
i not in daemon.announceProgress:
if i not in kv.get('announceCache'):
peer = i
break
else: