now share own pubkey
parent
e061e516ee
commit
28fd4f4858
|
@ -352,15 +352,17 @@ class Core:
|
|||
'''
|
||||
conn = sqlite3.connect(self.peerDB)
|
||||
c = conn.cursor()
|
||||
payload = ""
|
||||
if randomOrder:
|
||||
peers = c.execute('SELECT * FROM peers ORDER BY RANDOM();')
|
||||
payload = 'SELECT * FROM peers ORDER BY RANDOM();'
|
||||
else:
|
||||
peers = c.execute('SELECT * FROM peers;')
|
||||
payload = 'SELECT * FROM peers;'
|
||||
peerList = []
|
||||
for i in peers:
|
||||
for i in c.execute(payload):
|
||||
print('lol - ' + i[2])
|
||||
peerList.append(i[2])
|
||||
peerList.append(self._crypto.pubKey)
|
||||
conn.close()
|
||||
|
||||
return peerList
|
||||
|
||||
def getPeerInfo(self, peer, info):
|
||||
|
|
|
@ -39,6 +39,7 @@ class OnionrUtils:
|
|||
|
||||
def sendPM(self, user, message):
|
||||
'''High level function to encrypt a message to a peer and insert it as a block'''
|
||||
|
||||
return
|
||||
|
||||
def incrementAddressSuccess(self, address):
|
||||
|
|
Loading…
Reference in New Issue