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)
| 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 " |