work on sockets

This commit is contained in:
Kevin Froman 2018-09-24 16:21:59 -05:00
parent 67b9f6e51f
commit fa701f37dc

View File

@ -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: