MCPcopy Create free account
hub / github.com/ElementsProject/lightning / restart

Method restart

contrib/pyln-testing/pyln/testing/utils.py:955–967  ·  view source on GitHub ↗

Stop and restart the lightning node. Keyword arguments: timeout: number of seconds to wait for a shutdown clean: whether to issue a `stop` RPC command before killing

(self, timeout=10, clean=True)

Source from the content-addressed store, hash-verified

953 return self.rc
954
955 def restart(self, timeout=10, clean=True):
956 """Stop and restart the lightning node.
957
958 Keyword arguments:
959 timeout: number of seconds to wait for a shutdown
960 clean: whether to issue a `stop` RPC command before killing
961 """
962 if clean:
963 self.stop(timeout)
964 else:
965 self.daemon.stop()
966
967 self.start()
968
969 def fund_channel(self, l2, amount, wait_for_active=True, announce_channel=True):
970 warnings.warn("LightningNode.fund_channel is deprecated in favor of "

Callers 15

force_feeratesMethod · 0.95
test_remote_addrFunction · 0.80
test_funding_failFunction · 0.80
test_channel_persistenceFunction · 0.80
test_forget_channelFunction · 0.80
test_peerinfoFunction · 0.80
test_dataloss_protectionFunction · 0.80
test_old_feerateFunction · 0.80

Calls 3

stopMethod · 0.95
startMethod · 0.95
stopMethod · 0.45

Tested by 15

test_remote_addrFunction · 0.64
test_funding_failFunction · 0.64
test_channel_persistenceFunction · 0.64
test_forget_channelFunction · 0.64
test_peerinfoFunction · 0.64
test_dataloss_protectionFunction · 0.64
test_old_feerateFunction · 0.64
test_multichanFunction · 0.64