core-lightning/plugins
Christian Decker 2146a548bd plugin: Do not return multiple times from pay
While we were unsetting the `payment->cmd` in case of a success to signal that
we should not return to the JSON-RPC command twice, we were not doing that in
the case of failures. This was causing multiple responses to a single incoming
command, and `lightningd` was correctly killing the plugin. This issue was
introduced through early returns (anything setting `payment->abort=true`) and
was caused in Rusty's case through an MPP timeout.

Fixes #3847
Reported-by: Rusty Russell <@rustyrussell>
Signed-off-by: Christian Decker <@cdecker>
2020-07-18 11:40:02 +02:00
..
.gitignore gitignore: extend with recently added build products 2020-02-21 09:44:41 +01:00
autoclean.c plugins: make the autoclean plugin static 2020-06-24 15:29:39 +02:00
bcli.c bcli cleanups 2020-05-20 06:09:24 +09:30
fundchannel.c libplugin: Add features to plugin_main and getmanifest 2020-04-16 18:03:35 +09:30
keysend.c tlv: Allow passing a raw pointer and a length to tlvstream_set_raw 2020-07-13 14:19:16 +02:00
libplugin-pay.c plugin: Do not return multiple times from pay 2020-07-18 11:40:02 +02:00
libplugin-pay.h mpp: Add CLI option to opt-out of multi-part payments 2020-07-15 11:32:58 +02:00
libplugin.c mpp: Add CLI option to opt-out of multi-part payments 2020-07-15 11:32:58 +02:00
libplugin.h mpp: Add CLI option to opt-out of multi-part payments 2020-07-15 11:32:58 +02:00
Makefile bitcoin/feerate: new exposure for feerate parsing outside lightningd. 2020-07-08 21:07:20 +02:00
pay.c mpp: Add CLI option to opt-out of multi-part payments 2020-07-15 11:32:58 +02:00
README.md doc: fix wording in plugins/README.md 2020-01-06 12:57:59 +01:00

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).