mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-22 00:24:19 +01:00
lightningd: rename --no-reconnect to --dev-no-reconnect.
It's a dev option. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
bd3480dc9c
commit
0600aac68f
@@ -2042,7 +2042,7 @@ class LightningDTests(BaseLightningDTests):
|
||||
# HTLC 1->2, 1 fails after it's irrevocably committed, can't reconnect
|
||||
disconnects = ['@WIRE_REVOKE_AND_ACK']
|
||||
l1 = self.node_factory.get_node(disconnect=disconnects,
|
||||
options=['--no-reconnect'])
|
||||
options=['--dev-no-reconnect'])
|
||||
l2 = self.node_factory.get_node()
|
||||
|
||||
l1.rpc.connect(l2.info['id'], 'localhost', l2.info['port'])
|
||||
@@ -2098,7 +2098,7 @@ class LightningDTests(BaseLightningDTests):
|
||||
# HTLC 1->2, 1 fails after 2 has sent committed the fulfill
|
||||
disconnects = ['-WIRE_REVOKE_AND_ACK*2']
|
||||
l1 = self.node_factory.get_node(disconnect=disconnects,
|
||||
options=['--no-reconnect'])
|
||||
options=['--dev-no-reconnect'])
|
||||
l2 = self.node_factory.get_node()
|
||||
|
||||
l1.rpc.connect(l2.info['id'], 'localhost', l2.info['port'])
|
||||
@@ -2769,7 +2769,7 @@ class LightningDTests(BaseLightningDTests):
|
||||
def test_payment_success_persistence(self):
|
||||
# Start two nodes and open a channel.. die during payment.
|
||||
l1 = self.node_factory.get_node(disconnect=['+WIRE_COMMITMENT_SIGNED'],
|
||||
options=['--no-reconnect'])
|
||||
options=['--dev-no-reconnect'])
|
||||
l2 = self.node_factory.get_node()
|
||||
l1.rpc.connect(l2.info['id'], 'localhost', l2.info['port'])
|
||||
|
||||
@@ -2786,7 +2786,7 @@ class LightningDTests(BaseLightningDTests):
|
||||
l1.daemon.kill()
|
||||
|
||||
# Restart l1, without disconnect stuff.
|
||||
l1.daemon.cmd_line.remove('--no-reconnect')
|
||||
l1.daemon.cmd_line.remove('--dev-no-reconnect')
|
||||
l1.daemon.cmd_line.remove('--dev-disconnect=dev_disconnect')
|
||||
|
||||
# Should reconnect, and sort the payment out.
|
||||
@@ -2809,7 +2809,7 @@ class LightningDTests(BaseLightningDTests):
|
||||
def test_payment_failed_persistence(self):
|
||||
# Start two nodes and open a channel.. die during payment.
|
||||
l1 = self.node_factory.get_node(disconnect=['+WIRE_COMMITMENT_SIGNED'],
|
||||
options=['--no-reconnect'])
|
||||
options=['--dev-no-reconnect'])
|
||||
l2 = self.node_factory.get_node()
|
||||
l1.rpc.connect(l2.info['id'], 'localhost', l2.info['port'])
|
||||
|
||||
@@ -2827,7 +2827,7 @@ class LightningDTests(BaseLightningDTests):
|
||||
l1.daemon.kill()
|
||||
|
||||
# Restart l1, without disconnect stuff.
|
||||
l1.daemon.cmd_line.remove('--no-reconnect')
|
||||
l1.daemon.cmd_line.remove('--dev-no-reconnect')
|
||||
l1.daemon.cmd_line.remove('--dev-disconnect=dev_disconnect')
|
||||
|
||||
# Make sure invoice has expired.
|
||||
|
||||
Reference in New Issue
Block a user