work on pm and fixed broken pex when none
This commit is contained in:
parent
8d261b03dc
commit
87a9ecf426
@ -156,8 +156,6 @@ class API:
|
||||
resp = Response(response)
|
||||
elif action == 'kex':
|
||||
peers = self._core.listPeers()
|
||||
response = ''
|
||||
if type(peers) != None:
|
||||
response = ','.join(self._core.listPeers())
|
||||
resp = Response(response)
|
||||
else:
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user