work on sockets
This commit is contained in:
parent
67b9f6e51f
commit
fa701f37dc
@ -121,7 +121,7 @@ class OnionrSocketClient:
|
|||||||
def startSocket(self, peer, reason):
|
def startSocket(self, peer, reason):
|
||||||
address = ''
|
address = ''
|
||||||
# Find the newest open socket for a given peer
|
# Find the newest open socket for a given peer
|
||||||
for block in self._core.getBlocksByType('openSocket'):
|
for block in self._core.getBlocksByType('socket'):
|
||||||
block = onionrblockapi.Block(block, core=self._myCore)
|
block = onionrblockapi.Block(block, core=self._myCore)
|
||||||
if block.decrypt():
|
if block.decrypt():
|
||||||
if block.verifySig() and block.signer == peer:
|
if block.verifySig() and block.signer == peer:
|
||||||
|
Loading…
Reference in New Issue
Block a user