mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 09:34:24 +01:00
pytest: add test that htlc_accepted hook only gets called after init.
We fail this. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
49496ab3ba
commit
f0ab4d72da
@@ -34,4 +34,9 @@ def on_htlc_accepted(htlc, onion, plugin, **kwargs):
|
||||
return {'result': 'continue'}
|
||||
|
||||
|
||||
@plugin.init()
|
||||
def init(options, configuration, plugin):
|
||||
plugin.log("hold_htlcs.py initializing")
|
||||
|
||||
|
||||
plugin.run()
|
||||
|
||||
Reference in New Issue
Block a user