* fixed bug causing onionr to usually only have 1 peer at once

* do not crash when loading new peer profile
* removed code for defunct *address* proof of work
+ added maxStoredPeers and maxConnect config options (TODO)
+ added lastConnectAttempt to address db
+ added command to cause instant peer exchange
+ added connectCheck.txt for TODO connection testing
This commit is contained in:
Kevin Froman 2018-08-02 15:18:01 -05:00
parent 8bb5014d41
commit 032aa780ef
No known key found for this signature in database
GPG key ID: 0D414D0FE405B63B
6 changed files with 24 additions and 6 deletions

View file

@ -196,6 +196,7 @@ class Onionr:
'introduce': self.onionrCore.introduceNode,
'connect': self.addAddress,
'kex': self.doKEX,
'pex': self.doPEX,
'getpassword': self.printWebPassword
}
@ -218,6 +219,7 @@ class Onionr:
'import-blocks': 'import blocks from the disk (Onionr is transport-agnostic!)',
'listconn': 'list connected peers',
'kex': 'exchange keys with peers (done automatically)',
'pex': 'exchange addresses with peers (done automatically)',
'introduce': 'Introduce your node to the public Onionr network',
}
@ -329,6 +331,11 @@ class Onionr:
logger.info('Sending kex to command queue...')
self.onionrCore.daemonQueueAdd('kex')
def doPEX(self):
'''make communicator do pex'''
logger.info('Sending pex to command queue...')
self.onionrCore.daemonQueueAdd('pex')
def listKeys(self):
'''
Displays a list of keys (used to be called peers) (?)