peer/key exchange work (mostly done)

This commit is contained in:
Kevin Froman 2018-03-16 10:35:37 -05:00
parent a5e98b4787
commit cb3015652a
No known key found for this signature in database
GPG key ID: 0D414D0FE405B63B
4 changed files with 54 additions and 8 deletions

View file

@ -57,7 +57,7 @@ class Core:
def addPeer(self, peerID, name=''):
'''
Add a peer by their ID, with an optional name, to the peer database
Adds a public key to the key database (misleading function name)
DOES NO SAFETY CHECKS if the ID is valid, but prepares the insertion
'''
@ -346,7 +346,7 @@ class Core:
def listPeers(self, randomOrder=True):
'''
Return a list of peers
Return a list of public keys (misleading function name)
randomOrder determines if the list should be in a random order
'''