Moved cooldownPeer to KV to further reduce coupling
This commit is contained in:
parent
dde10b7005
commit
fad5e8547e
3 changed files with 5 additions and 5 deletions
|
@ -70,6 +70,7 @@ class OnionrCommunicatorDaemon:
|
|||
self.kv.put('newPeers', [])
|
||||
self.kv.put('dbTimestamps', {})
|
||||
self.kv.put('blocksToUpload', [])
|
||||
self.kv.put('cooldownPeer', {})
|
||||
|
||||
if config.get('general.offline_mode', False):
|
||||
self.isOnline = False
|
||||
|
@ -88,7 +89,6 @@ class OnionrCommunicatorDaemon:
|
|||
self.delay = 1
|
||||
|
||||
# lists of connected peers and peers we know we can't reach currently
|
||||
self.cooldownPeer = {}
|
||||
self.connectTimes = {}
|
||||
# list of peer's profiles (onionrpeers.PeerProfile instances)
|
||||
self.peerProfiles = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue