mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +01:00
bc36a4580c
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>
16 lines
296 B
Python
Executable File
16 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()
|