MCPcopy Create free account
hub / github.com/ElementsProject/lightning / on_htlc_accepted

Function on_htlc_accepted

contrib/plugins/helloworld.py:56–59  ·  view source on GitHub ↗
(onion, htlc, plugin, **kwargs)

Source from the content-addressed store, hash-verified

54
55@plugin.hook("htlc_accepted")
56def on_htlc_accepted(onion, htlc, plugin, **kwargs):
57 plugin.log('on_htlc_accepted called')
58 time.sleep(20)
59 return {'result': 'continue'}
60
61
62plugin.add_option('greeting', 'Hello', 'The greeting I should use.')

Callers

nothing calls this directly

Calls 1

logMethod · 0.80

Tested by

no test coverage detected