mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 14:42:40 +01:00
It hits the new assert(): before that (tested!) it actually kills everything and logs you out. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
15 lines
296 B
Python
Executable file
15 lines
296 B
Python
Executable file
#!/some/bad/path/to/python3
|
|
from pyln.client import Plugin
|
|
import os
|
|
import time
|
|
|
|
plugin = Plugin()
|
|
|
|
|
|
@plugin.init()
|
|
def init(options, configuration, plugin):
|
|
plugin.log("slow_init.py initializing {}".format(configuration))
|
|
time.sleep(int(os.getenv('SLOWINIT_TIME', "0")))
|
|
|
|
|
|
plugin.run()
|