core-lightning/plugins
Rusty Russell f77d4d7097 offers: fix flake in fetchinvoice.
In CI, this would sometimes fail: we would timeout waiting for the
fetchinvoice reply.  Never happened locally, so was annoying to debug.

What happened was simple: we called injectonionmessage then when it
returned, put the "sent" object in the linked list so we could recognize
any reply onion messages.

However, we were getting that reply before the plugin processed the response
to injectonionmessage.  This is possible because there are two fds for
plugins: one for it to receive notifications and hooks (like onion messages)
and one for normal RPC usage (like commands to inject onion messages).

The fix is simple: put in the list *before* calling JSON RPC.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2024-08-05 16:35:15 +02:00
..
bkpr plugin: Removing category, description and long_description from plugin_command struct 2024-07-31 14:42:58 +09:30
clnrest rpc: Removing description from json_command struct 2024-07-31 14:42:58 +09:30
examples cln-plugin: Add dynamic configs and a callback for changes 2024-05-15 13:26:02 +02:00
grpc-plugin grpc-plugin: Run cargo fmt for minor style fixes 2024-07-31 08:53:12 +02:00
renepay plugin: Removing category, description and long_description from plugin_command struct 2024-07-31 14:42:58 +09:30
spender plugin: Removing category, description and long_description from plugin_command struct 2024-07-31 14:42:58 +09:30
src cln-plugin: fix over-escaping rpc errors 2024-05-15 13:26:02 +02:00
test libplugin: support filtering of outgoing commands. 2024-06-20 16:14:38 +09:30
wss-proxy plugins: Remove requirements.txt for python plugins 2024-07-03 12:20:05 -07:00
.gitignore Plugins: Add recover plugin which'd identify if we've lost some state and try to recover the node by entering mode. 2024-02-16 22:17:46 +01:00
autoclean.c plugin: Removing category, description and long_description from plugin_command struct 2024-07-31 14:42:58 +09:30
bcli.c plugin: Removing category, description and long_description from plugin_command struct 2024-07-31 14:42:58 +09:30
Cargo.toml meta: bump rust versions for 24.05 release 2024-06-04 20:23:24 -05:00
chanbackup.c plugin: Removing category, description and long_description from plugin_command struct 2024-07-31 14:42:58 +09:30
commando.c plugin: Removing category, description and long_description from plugin_command struct 2024-07-31 14:42:58 +09:30
establish_onion_path.c offers: add self-fetchinvoices for offers, and self-pay for the resulting invoice. 2024-07-18 10:53:55 +09:30
establish_onion_path.h fetchinvoice: use common/onion_message routines. 2024-07-17 10:57:11 +02:00
fetchinvoice.c offers: fix flake in fetchinvoice. 2024-08-05 16:35:15 +02:00
fetchinvoice.h plugins/offers: neaten fetchinvoice integration. 2024-07-17 10:57:11 +02:00
funder.c plugin: Removing category, description and long_description from plugin_command struct 2024-07-31 14:42:58 +09:30
funder_policy.c libplugin: allow display of default values. 2024-05-15 15:50:54 -05:00
funder_policy.h libplugin: allow display of default values. 2024-05-15 15:50:54 -05:00
keysend.c plugin: Removing category, description and long_description from plugin_command struct 2024-07-31 14:42:58 +09:30
libplugin-pay.c plugins/pay: pay to invoices where first hop is a short_channel_id_dir. 2024-07-18 10:53:55 +09:30
libplugin-pay.h plugins/pay: pay to invoices where first hop is a short_channel_id_dir. 2024-07-18 10:53:55 +09:30
libplugin.c plugin: Removing category, description and long_description from plugin_command struct 2024-07-31 14:42:58 +09:30
libplugin.h plugin: Removing category, description and long_description from plugin_command struct 2024-07-31 14:42:58 +09:30
Makefile common/bolt12_id: new common routine for creating path secrets. 2024-08-01 12:31:48 +09:30
offers.c global: update BOLT12 quotes. 2024-08-01 12:31:48 +09:30
offers.h lightningd: make plugins set metadata for invoice requests. 2024-08-01 12:31:48 +09:30
offers_inv_hook.c global: update BOLT12 quotes. 2024-08-01 12:31:48 +09:30
offers_inv_hook.h offers: check they use the blinded path if one is specified. 2024-07-17 10:57:11 +02:00
offers_invreq_hook.c global: update BOLT12 quotes. 2024-08-01 12:31:48 +09:30
offers_invreq_hook.h offers: check they use the blinded path if one is specified. 2024-07-17 10:57:11 +02:00
offers_offer.c global: update BOLT12 quotes. 2024-08-01 12:31:48 +09:30
offers_offer.h plugins: move fetchinvoice functionality into offers plugin. 2024-07-17 10:57:11 +02:00
pay.c plugin: Removing category, description and long_description from plugin_command struct 2024-07-31 14:42:58 +09:30
README.md doc: fix wording in plugins/README.md 2020-01-06 12:57:59 +01:00
recover.c common: remove type_to_string files altogther. 2024-03-20 13:51:48 +10:30
sql.c plugin: Removing category, description and long_description from plugin_command struct 2024-07-31 14:42:58 +09:30
topology.c plugin: Removing category, description and long_description from plugin_command struct 2024-07-31 14:42:58 +09:30
txprepare.c plugin: Removing category, description and long_description from plugin_command struct 2024-07-31 14:42:58 +09:30

Plugin Directory

Any file in this directory which is executable and whose name only consists of alphanumeric characters, space, '.', '-' or '_' will be automatically loaded when lightningd starts (unless suppressed with commandline options).