cln/doc/developers-guide/plugin-development
Peter Neuroth 21fb7600f3 lightningd: add invoice_amt to the htlc_accepted hook
This commit introduces a new field `invoice_msat` to the htlc_accepted
hook. If this field is specified it will replace the amount of the
invoice that belongs to the payment_hash of the HTLC on internal checks.

This is useful in scenarios where we actually expect a smaller amount
than initially specified in an invoice.

Changelog-Changed: Plugins: `htlc_accepted` hook can now override the
expected total amount of the invoice that belongs to the HTLC.

Signed-off-by: Peter Neuroth <pet.v.ne@gmail.com>
2025-11-10 15:05:27 +10:30
..
a-day-in-the-life-of-a-plugin.md doc: Fix links to avoid 404 error 2025-06-26 14:21:56 +09:30
additional-resources.md update new documentation and move to doc/ 2023-07-16 12:59:40 +09:30
bitcoin-backend.md docs: fixing the json response in documentation 2024-05-09 23:19:29 -05:00
event-notifications.md lightningd: separate coin_movement tags array into primary_tag and extra_tags. 2025-08-14 19:49:09 +09:30
hooks.md lightningd: add invoice_amt to the htlc_accepted hook 2025-11-10 15:05:27 +10:30
json-rpc-passthrough.md pyln-client: Deprecate category, description and long description from method 2024-08-07 10:19:55 +09:30
plugin-manager.md update new documentation and move to doc/ 2023-07-16 12:59:40 +09:30