rgb-cln/plugins
niftynei 6db6ba6c03 dual-funding: introduce racy state
It's unlikely but possible that a race condition will result in us not
being at the 'secured' state yet here.

Crashlogs. All required msgs are received (in order)
from peers, but the crash suggests they weren't relayed/processed by the
spender plugin in the order received.

WIRE_TX_SIGNATURES is passed the the plugin via a notification;
WIRE_COMMITMENT_SIGNED is returned as the result of an RPC call.

```
021-03-25T12:12:33.5213247Z lightningd-1: 2021-03-25T11:50:13.351Z DEBUG   035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d-dualopend-chan#3: peer_in WIRE_COMMITMENT_SIGNED
2021-03-25T12:12:33.5221140Z lightningd-1: 2021-03-25T11:50:13.659Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-dualopend-chan#1: peer_in WIRE_COMMITMENT_SIGNED
2021-03-25T12:12:33.5228462Z lightningd-1: 2021-03-25T11:50:14.169Z DEBUG   035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d-dualopend-chan#3: peer_in WIRE_TX_SIGNATURES
2021-03-25T12:12:33.5230957Z lightningd-1: 2021-03-25T11:50:14.375Z DEBUG   plugin-spenderp: mfc 275, dest 1: openchannel_update 035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d returned.
2021-03-25T12:12:33.5233307Z lightningd-1: 2021-03-25T11:50:14.539Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-dualopend-chan#1: peer_in WIRE_TX_SIGNATURES
2021-03-25T12:12:33.5235120Z lightningd-1: 2021-03-25T11:50:17.240Z INFO    plugin-spenderp: Killing plugin: exited during normal operation
2021-03-25T12:12:33.5236707Z lightningd-1: 2021-03-25T11:50:17.260Z **BROKEN** plugin-spenderp: Plugin marked as important, shutting down lightningd!
```

Fixes #4455
2021-03-30 13:44:11 +10:30
..
spender dual-funding: introduce racy state 2021-03-30 13:44:11 +10:30
.gitignore plugins: add txprepare to .gitignore 2020-12-04 11:30:58 +10:30
Makefile mfc: turn "UNKNOWN TYPE channel_id" logs into actually the channel id 2021-03-17 11:35:37 +10:30
README.md doc: fix wording in plugins/README.md 2020-01-06 12:57:59 +01:00
autoclean.c libplugin: make init return a string. 2021-01-13 14:45:36 +01:00
bcli.c typo: information is an uncountable mass noun 2021-03-16 10:45:40 +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: Add error when trying to send to self 2021-03-19 10:18:42 +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 typo: information is an uncountable mass noun 2021-03-16 10:45:40 +10:30
libplugin.h libplugin: make init return a string. 2021-01-13 14:45:36 +01:00
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 remove duplicated erring_node from paystatus. 2021-03-17 06:05:35 +10:30
txprepare.c txprepare, withdraw: return the PSBT as well as raw tx. 2021-03-16 13:10:07 +10:30

README.md

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