core-lightning/plugins
niftynei ef1e36efe5 mfc: check that we can retry when things go haywire
There's a version of this that keeps the PSBT in memory and does some
fancy addition/subtraction of unuseable parts for the v2's, however
it's much easier and simpler to simply error on the peer and re-start
from the very beginning.

This only works if we haven't gotten commitments from the peer yet (in
fact either method would only work if we haven't got commitments from
the peer yet), so if we've got commitments from them we simply mark them
as failed an go again.

In a perfect world, we'd remember what inputs we used last time, and
reuse those again on the re-attempt, which would pefectly guarantee both
that the failed opens (ones w/ commitments exchanged) would be canceled
after this completes (and we could re-try the failed again).

As it is, this is not perfect. It is, however, servicable.
2021-03-15 14:08:44 +10:30
..
spender mfc: check that we can retry when things go haywire 2021-03-15 14:08:44 +10:30
.gitignore plugins: add txprepare to .gitignore 2020-12-04 11:30:58 +10:30
autoclean.c libplugin: make init return a string. 2021-01-13 14:45:36 +01:00
bcli.c plugins/bcli: fake minimum fee if we're in regtest mode. 2021-03-02 13:34:55 +10:30
fetchinvoice.c fetchinvoice: don't abort() if we try to fetch an invoice from ourselves. 2021-01-14 11:12:11 +01:00
keysend.c keysend: Set an error message if we abort due to missing TLV 2021-03-11 14:09:51 +10:30
libplugin-pay.c pay: Abort the payment if destination is unreachable 2021-03-11 14:09:51 +10:30
libplugin-pay.h libplugin: Introduce payment_abort to terminate a payment 2021-03-11 14:09:51 +10:30
libplugin.c libplugin: make init return a string. 2021-01-13 14:45:36 +01:00
libplugin.h libplugin: make init return a string. 2021-01-13 14:45:36 +01:00
Makefile common: extract fp16 routines into their own file. 2021-02-04 12:02:36 +10:30
offers.c offers: make it a runtime option. 2021-01-13 14:45:36 +01:00
offers.h plugin/offers: hoist send_onion_reply into core. 2021-01-09 14:34:35 +10:30
offers_inv_hook.c common/amount: make fmt_amount_sat / fmt_amount_msat etc take copy. 2021-01-09 12:45:31 +01:00
offers_inv_hook.h plugins/offer: handle receiving an invoice in an onion_message. 2021-01-09 14:34:35 +10:30
offers_invreq_hook.c offers: handle re-fetching the same invoice twice. 2021-02-25 14:44:03 +10:30
offers_invreq_hook.h plugins/offers: add code to catch invoice_request onion messages. 2020-12-23 14:24:39 +01:00
offers_offer.c offer: allow offers in other currencies if we can convert. 2021-01-09 12:45:31 +01:00
offers_offer.h offers: split offer send_invoice generation into new JSON command 2021-01-09 14:34:35 +10:30
pay.c pay: Add functions to tell bolt12 string apart 2021-03-11 14:09:51 +10:30
README.md doc: fix wording in plugins/README.md 2020-01-06 12:57:59 +01:00
txprepare.c txprepare: Verify that outputs arg is an array 2020-12-09 06:56:21 +10: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).