core-lightning/plugins
Christian Decker de0fd1f274 keysend: Change the plugin to add an invoice and then continue
So far we were relying on `lightningd` to create an ad-hoc invoice when
telling it to `resolve` with a given preimage. We now switch to having the
plugin create the invoice, remove the mandatory `keysend_preimage`
field (which would upset `lightningd` otherwise), and then return the modified
payload with the instructions to `continue` instead of resolving.

This ties back in with the existing payment/invoice handling code. Invoices
are created only if we don't have a label clash (unlikely since we have the
nano-time in the label), or the `payment_hash` was already used for another
invoice (at which point `lightningd` will automatically reject the payment and
we're a bit poorer for it, but meh :-)
2020-04-16 18:03:35 +09:30
..
.gitignore gitignore: extend with recently added build products 2020-02-21 09:44:41 +01:00
autoclean.c libplugin: Add features to plugin_main and getmanifest 2020-04-16 18:03:35 +09:30
bcli.c libplugin: Add features to plugin_main and getmanifest 2020-04-16 18:03:35 +09:30
fundchannel.c libplugin: Add features to plugin_main and getmanifest 2020-04-16 18:03:35 +09:30
keysend.c keysend: Change the plugin to add an invoice and then continue 2020-04-16 18:03:35 +09:30
libplugin.c libplugin: Add features to plugin_main and getmanifest 2020-04-16 18:03:35 +09:30
libplugin.h libplugin: Add features to plugin_main and getmanifest 2020-04-16 18:03:35 +09:30
Makefile wire: Add a function to serialize a raw set of TLV fields 2020-04-16 18:03:35 +09:30
pay.c libplugin: Add features to plugin_main and getmanifest 2020-04-16 18:03:35 +09:30
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).