fix peer amount check not calling method
parent
25e4444bda
commit
6d31fa4229
|
@ -132,7 +132,7 @@ class OnionrUtils:
|
|||
continue
|
||||
if self._core.addAddress(adder):
|
||||
# Check if we have the maxmium amount of allowed stored peers
|
||||
if config.get('peers.maxStoredPeers') > len(self._core.listAdders):
|
||||
if config.get('peers.maxStoredPeers') > len(self._core.listAdders()):
|
||||
logger.info('Added %s to db.' % adder, timestamp = True)
|
||||
retVal = True
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue