rgb-cln/plugins
niftynei 48bb2d831b dual-fund: don't re-notify plugin on arrival of sigs (2nd time)
When we got our peer's sigs, if we were the remote, we would re-notify
the plugin, which in turn would re-send the tx-sigs to use.

In the case of CLN, we'd then
- break, because we'd re-forward the sigs to the `openchannel` plugin,
  which was then in the wrong state (MULTIFUNDCHANNEL_SIGNED)

    spenderp: plugins/spender/openchannel.c:598: json_peer_sigs: Assertion `dest->state == MULTIFUNDCHANNEL_SECURED' failed.
    spenderp: FATAL SIGNAL 6 (version 5880d59-modded)

In the case of eclair, they'd just see our 2nd TX_SIGS message and
@t-bast would complain:

	> This test works, with one minor issue: on reconnection, cln sends its tx_signatures twice (duplicate?).

This commit does two things:
	- has the openchannel / spender plugin log a broken instead of
	  crashing when the state is not what we're expecting
	- stops us from calling the `funder` plugin if this is a
	  replay/second receipt of commit-sigs.
2023-11-02 19:32:05 +10:30
..
bkpr db: remove #if DEVELOPER in favor of runtime flag inside db struct. 2023-09-21 20:08:24 +09:30
clnrest clnrest: code refactoring for: 2023-10-31 10:21:22 -07:00
examples cln-plugin: Add test for cln-plugin send_custom_notification 2023-10-30 18:24:23 +01:00
grpc-plugin rs: Fix the manifests for publication 2023-10-26 15:51:07 +02:00
renepay renepay: work around change in fundchannel in tests. 2023-10-04 08:02:33 +10:30
spender dual-fund: don't re-notify plugin on arrival of sigs (2nd time) 2023-11-02 19:32:05 +10:30
src cln-plugin: don't require redundant method reference 2023-10-30 18:24:23 +01:00
test renepay: make pay_plugin a tal object. 2023-08-12 09:41:24 +09:30
.gitignore meta: ignore renepay binary 2023-08-21 10:35:41 +09:30
Cargo.toml rs: Fix the manifests for publication 2023-10-26 15:51:07 +02:00
Makefile fallback: json add fallback cleanup 2023-10-26 19:11:17 +10:30
README.md
autoclean.c autoclean: allow dynamic changes to autoclean-cycle. 2023-06-20 20:08:25 +09:30
bcli.c plugins: remove #if DEVELOPER. 2023-09-21 20:08:24 +09:30
chanbackup.c chanbackup: even if they enable experimental-peer-storage, check peers 2023-03-08 18:46:21 -06:00
commando.c plugins: remove #if DEVELOPER. 2023-09-21 20:08:24 +09:30
fetchinvoice.c plugins: remove #if DEVELOPER. 2023-09-21 20:08:24 +09:30
funder.c plugins: remove #if DEVELOPER. 2023-09-21 20:08:24 +09:30
funder_policy.c libplugin: make set callback for options take plugin ptr, check correct type. 2023-06-20 20:08:25 +09:30
funder_policy.h libplugin: make set callback for options take plugin ptr, check correct type. 2023-06-20 20:08:25 +09:30
keysend.c plugins: remove #if DEVELOPER. 2023-09-21 20:08:24 +09:30
libplugin-pay.c plugins: remove #if DEVELOPER. 2023-09-21 20:08:24 +09:30
libplugin-pay.h plugins: remove #if DEVELOPER. 2023-09-21 20:08:24 +09:30
libplugin.c common/memleak: implement callback arg for dump_memleak. 2023-10-03 10:05:55 +02:00
libplugin.h plugins: remove #if DEVELOPER. 2023-09-21 20:08:24 +09:30
offers.c plugins/offers: Extend the capability of decode to decrypt the contents of emergency.recover file. 2023-10-27 16:05:28 +10:30
offers.h common: update to latest onion message spec. 2022-10-26 11:29:06 +10:30
offers_inv_hook.c lightningd: re-add 'offerout' functionality, as 'invoicerequest'. 2022-11-09 15:08:03 +01:00
offers_inv_hook.h lightningd: re-add 'offerout' functionality, as 'invoicerequest'. 2022-11-09 15:08:03 +01:00
offers_invreq_hook.c offers: fix pay where we are using deprecated apis. 2023-02-03 16:59:51 +01:00
offers_invreq_hook.h offers: create a real blinded path, if necessary. 2022-11-09 15:08:03 +01:00
offers_offer.c offers: enable label for invoicerequest 2023-03-09 06:56:06 -06:00
offers_offer.h lightningd: re-add 'offerout' functionality, as 'invoicerequest'. 2022-11-09 15:08:03 +01:00
pay.c plugins: remove #if DEVELOPER. 2023-09-21 20:08:24 +09:30
sql.c plugins: remove #if DEVELOPER. 2023-09-21 20:08:24 +09:30
topology.c plugins/topology: convert listpeerchannels into local overlay. 2023-10-04 08:02:33 +10:30
txprepare.c plugins: remove #if DEVELOPER. 2023-09-21 20:08:24 +09: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).