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