work on pm and fixed broken pex when none

master
Kevin Froman 2018-04-03 19:42:20 -05:00
parent 8d261b03dc
commit 87a9ecf426
No known key found for this signature in database
GPG Key ID: 0D414D0FE405B63B
2 changed files with 2 additions and 4 deletions

View File

@ -156,9 +156,7 @@ class API:
resp = Response(response)
elif action == 'kex':
peers = self._core.listPeers()
response = ''
if type(peers) != None:
response = ','.join(self._core.listPeers())
response = ','.join(self._core.listPeers())
resp = Response(response)
else:
resp = Response("")

View File

@ -360,7 +360,7 @@ class Core:
payload = 'SELECT * FROM peers;'
peerList = []
for i in c.execute(payload):
if type(i[2] != None):
if type(i[2]) != None:
peerList.append(i[2])
peerList.append(self._crypto.pubKey)
conn.close()