cln/lightningd
Vincenzo Palazzo f96099691b lightningd: include offer_id in invoice_creation notification
When a BOLT 12 invoice is created via createinvoice and is associated
with a local offer, include the offer_id in the invoice_creation event
notification. This allows plugins to determine which offer triggered
an invoice creation without having to call listinvoices for every
created invoice.

For bolt11 invoices and bolt12 invoices not associated with a local
offer, the field is omitted.

Fixes #8191

Changelog-Added: The `invoice_creation` notification now includes `offer_id` when the invoice is associated with a BOLT 12 offer.
2026-05-11 15:56:31 +09:30
..
test lightningd: include offer_id in invoice_creation notification 2026-05-11 15:56:31 +09:30
.gitignore gitignore: add lightningd/lightning_gossip_compactd 2026-02-27 13:55:09 +10:30
anchorspend.c lightningd: use bip86 derivation for anchor spend change outputs 2026-01-14 17:18:56 +10:30
anchorspend.h channeld: use anchors on peer's commitment(s) if we can't broadcast our own. 2023-10-27 11:19:56 +10:30
bitcoind.c lightningd: add get_bitcoin_result for bcli response handling 2026-02-18 14:16:29 +10:00
bitcoind.h lightningd: re-xmit funding txs on startup. 2025-11-19 07:23:39 +10:30
chaintopology.c splice: Make feerate opening + feerate_offset 2026-05-11 15:54:37 +09:30
chaintopology.h splice: Make feerate opening + feerate_offset 2026-05-11 15:54:37 +09:30
channel.c graceful: new command to instruct CLN to start shutting down. 2026-05-11 13:52:44 +09:30
channel.h graceful: new command to instruct CLN to start shutting down. 2026-05-11 13:52:44 +09:30
channel_control.c splice: Make feerate opening + feerate_offset 2026-05-11 15:54:37 +09:30
channel_control.h lightningd: save short_channel_id in inflight struct as soon as it gets mined. 2026-03-23 09:22:04 +10:30
channel_gossip.c global: add the "easy" missing quotes. 2026-04-30 12:17:43 +09:30
channel_gossip.h reestablish: Send announcement sigs when asked 2026-03-18 09:40:54 +10:00
channel_state.h global: remove unnecessary includes from headers. 2025-10-23 06:44:04 +10:30
closed_channel.c lightningd: add withheld flag to listpeerchannels and listclosedchannels. 2025-11-19 07:23:39 +10:30
closed_channel.h lightningd: save funding PSBT to database if we're to withhold it. 2025-11-19 07:23:39 +10:30
closing_control.c global: more missing BOLT quotes. 2026-04-30 12:17:43 +09:30
closing_control.h lightningd: make close_txs parameter to resolve_close_command const. 2024-11-25 20:23:21 +10:30
coin_mvts.c global: use clock_time in place of time_now(). 2025-11-13 21:21:29 +10:30
coin_mvts.h lightningd: migrate events from bookkeeper at startup. 2025-08-19 13:37:50 +09:30
configs.c setconfig: fix crash on dynamic multi-value plugin options 2026-05-11 15:49:10 +09:30
connect_control.c lightningd: --message-padding to allow users to disable padding altogether. 2026-04-20 10:31:58 +10:00
connect_control.h connectd: return reason, connect time to lightningd on connection results. 2025-11-12 13:58:43 +10:30
datastore.c global: remove unnecessary includes from C files. 2025-10-23 06:44:04 +10:30
dual_open_control.c Update outdated BOLT quotes in channel open/close handling. 2026-04-30 12:17:43 +09:30
dual_open_control.h common: BOLT update: option_anchors_zero_fee_htlc_tx is now simply "option_anchors". 2024-06-19 15:54:24 +09:30
feerate.c global: remove unnecessary includes from C files. 2025-10-23 06:44:04 +10:30
feerate.h lightningd: clean up feerate handling, deprecate old terms. 2023-04-10 07:31:12 +09:30
forwards.c lightningd: add preimage to forward_event notification 2026-03-19 10:46:49 +10:00
forwards.h lightningd: add preimage to forward_event notification 2026-03-19 10:46:49 +10:00
gossip_control.c gossipd: dev-compact-gossip-store to manually invoke compaction. 2026-02-16 17:23:33 +10:30
gossip_control.h global: remove unnecessary includes from headers. 2025-10-23 06:44:04 +10:30
gossip_generation.c Fix C comments which will accidentally trigger Python BOLT quote checker. 2026-04-30 12:17:43 +09:30
gossip_generation.h bitcoin/short_channel_id: pass by copy everywhere. 2024-03-20 13:51:48 +10:30
hsm_control.c splice: Remove experiemental splicing feature 2026-04-09 11:04:42 +09:30
hsm_control.h hsm_control: fixup! old comment 2025-10-26 12:37:58 +10:30
htlc_end.c global: use clock_time in place of time_now(). 2025-11-13 21:21:29 +10:30
htlc_end.h lightningd: Add extra_tlvs to htlc_accepted_hook 2025-08-14 18:57:05 +09:30
htlc_set.c global: add the "easy" missing quotes. 2026-04-30 12:17:43 +09:30
htlc_set.h lightningd: add invoice_amt to the htlc_accepted hook 2025-11-10 15:05:27 +10:30
invoice.c lightningd: include offer_id in invoice_creation notification 2026-05-11 15:56:31 +09:30
invoice.h Fix C comments which will accidentally trigger Python BOLT quote checker. 2026-04-30 12:17:43 +09:30
io_loop_with_timers.c database: pull out database code into a new module 2022-03-05 15:03:34 +10:30
io_loop_with_timers.h lightningd/io_loop_with_timers.c: Move mainloop to its own source file, have chaintopology use it. 2019-05-31 17:57:10 +02:00
jsonrpc.c graceful: new command to instruct CLN to start shutting down. 2026-05-11 13:52:44 +09:30
jsonrpc.h lightningd: make notifications from plugins just like native ones. 2025-08-18 10:01:07 +09:30
lightningd.c config: change message-padding to false by default. 2026-05-11 15:26:53 +09:30
lightningd.h graceful: new command to instruct CLN to start shutting down. 2026-05-11 13:52:44 +09:30
log.c logging: switch to a simple ringbuffer. 2026-01-27 09:31:02 +10:30
log.h logging: switch to a simple ringbuffer. 2026-01-27 09:31:02 +10:30
log_status.c lightningd/log: clean up nomenclature. 2023-07-19 19:13:57 +09:30
log_status.h lightningd/log: clean up nomenclature. 2023-07-19 19:13:57 +09:30
Makefile Makefile: create a library containing common, wire and bitcoin objects. 2025-10-23 06:44:04 +10:30
memdump.c lightningd: fix bogus memleak report. 2026-01-14 15:41:45 +10:30
memdump.h lightningd: fix bogus memleak report. 2026-01-14 15:41:45 +10:30
notification.c lightningd: include offer_id in invoice_creation notification 2026-05-11 15:56:31 +09:30
notification.h lightningd: include offer_id in invoice_creation notification 2026-05-11 15:56:31 +09:30
offer.c common/bolt12: use a const char * for fail reason. 2026-05-11 11:13:55 +09:30
onchain_control.c global: more missing BOLT quotes. 2026-04-30 12:17:43 +09:30
onchain_control.h onchaind: remove 'is_replay' logic 2021-12-28 04:42:42 +10:30
onion_message.c global: remove unnecessary includes from C files. 2025-10-23 06:44:04 +10:30
onion_message.h common: remove support for pre v0.10.2 onionmessages. 2021-12-01 05:44:28 +10:30
opening_common.c global: remove unnecessary includes from C files. 2025-10-23 06:44:04 +10:30
opening_common.h lightningd: save funding PSBT to database if we're to withhold it. 2025-11-19 07:23:39 +10:30
opening_control.c opening: reject fundchannel_complete with unsigned non-segwit inputs 2026-05-07 11:33:39 +09:30
opening_control.h common: BOLT update: option_anchors_zero_fee_htlc_tx is now simply "option_anchors". 2024-06-19 15:54:24 +09:30
options.c config: change message-padding to false by default. 2026-05-11 15:26:53 +09:30
options.h lightningd: allow --recover / recover JSON RPC to take mnemonic. 2026-01-13 22:36:01 +10:30
pay.c xpay: take over pay invocations by default. 2026-05-11 13:51:52 +09:30
pay.h lightningd: refactor payment failed. 2024-10-27 13:57:50 +11:00
peer_control.c graceful: add a timeout for user simplicity. 2026-05-11 13:52:44 +09:30
peer_control.h graceful: new command to instruct CLN to start shutting down. 2026-05-11 13:52:44 +09:30
peer_fd.c subdaemons: remove gossipd fd from per-peer daemons. 2022-02-08 11:15:52 +10:30
peer_fd.h global: remove unnecessary includes from headers. 2025-10-23 06:44:04 +10:30
peer_htlcs.c graceful: new command to instruct CLN to start shutting down. 2026-05-11 13:52:44 +09:30
peer_htlcs.h lightningd: Add extra_tlvs to htlc_accepted_hook 2025-08-14 18:57:05 +09:30
ping.c global: remove unnecessary includes from C files. 2025-10-23 06:44:04 +10:30
ping.h lightningd: fix race with crossover pings. 2025-08-14 17:35:39 +09:30
plugin.c setconfig: fix crash on dynamic multi-value plugin options 2026-05-11 15:49:10 +09:30
plugin.h setconfig: fix crash on dynamic multi-value plugin options 2026-05-11 15:49:10 +09:30
plugin_control.c global: remove unnecessary includes from C files. 2025-10-23 06:44:04 +10:30
plugin_control.h plugins: add command field to subcommand output. 2021-06-25 09:49:33 +09:30
plugin_hook.c lightningd: support "filters" in plugins manifest to restrict when hooks are called. 2025-11-20 16:30:50 +10:30
plugin_hook.h lightningd: support "filters" in plugins manifest to restrict when hooks are called. 2025-11-20 16:30:50 +10:30
routehint.c lightningd: honor payment-fronting-node when making bolt11 invoices. 2026-02-23 19:05:37 +10:30
routehint.h invoice: overhaul routehints to use topology.listincoming, cleanup. 2021-06-16 10:29:17 +09:30
runes.c common/bolt12: use a const char * for fail reason. 2026-05-11 11:13:55 +09:30
runes.h runes: ensure that uniqueid is a valid number. 2023-09-12 15:19:02 +09:30
signmessage.c global: remove unnecessary includes from C files. 2025-10-23 06:44:04 +10:30
subd.c lightningd: fix occasional memleak when we detach subd from channel. 2026-01-08 22:33:19 +10:30
subd.h global: remove unnecessary includes from headers. 2025-10-23 06:44:04 +10:30
wait.c pytest: don't rely on sleep to ensure wait commands have been submitted. 2026-01-14 15:41:45 +10:30
wait.h lightningd: db infrastructure for network events. 2025-11-12 13:58:43 +10:30
watch.c common: add tal_free_if_taken() helper for common case. 2026-03-29 14:35:54 +10:30
watch.h lightningd: change watch_scriptpubkey and watch_blockdepth not to insert exact duplicates. 2026-03-23 09:22:04 +10:30