mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-12-28 01:24:42 +01:00
006ab1e367
We modify the slow_init() so it doesn't go too slowly for this test. This demonstrates a crash, where we currently try to fail a command multiple times. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
16 lines
291 B
Python
Executable File
16 lines
291 B
Python
Executable File
#!/usr/bin/env 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()
|