Browse Source

fixup! pylightning: RPC returns a failure if the connection is lost

ppa-0.6.1
Christian Decker 8 years ago
committed by Rusty Russell
parent
commit
5028f7b9d9
  1. 5
      tests/utils.py

5
tests/utils.py

@ -198,7 +198,10 @@ class LightningNode(object):
tx = self.bitcoin.rpc.gettransaction(txid)
def call_connect():
self.rpc.connect('127.0.0.1', remote_node.daemon.port, tx['hex'], async=False)
try:
self.rpc.connect('127.0.0.1', remote_node.daemon.port, tx['hex'], async=False)
except:
pass
t = threading.Thread(target=call_connect)
t.daemon = True
t.start()

Loading…
Cancel
Save