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