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

Function on_payment

tests/plugins/hold_invoice.py:13–17  ·  view source on GitHub ↗
(payment, plugin, **kwargs)

Source from the content-addressed store, hash-verified

11
12@plugin.hook('invoice_payment')
13def on_payment(payment, plugin, **kwargs):
14 # Block until file appears
15 while not os.path.exists("unhold"):
16 time.sleep(0.25)
17 return {'result': 'continue'}
18
19
20plugin.run()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected