cln/plugins
Rusty Russell a12e41a930 compiler: fix for -O3 errors.
CI revealed one:

```
cc plugins/libplugin-pay.c
plugins/libplugin-pay.c: In function ‘payment_getroute’:
plugins/libplugin-pay.c:888:17: error: ‘errstr’ may be used uninitialized [-Werror=maybe-uninitialized]
  888 |                 payment_fail(p, "%s", errstr);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
plugins/libplugin-pay.c:851:21: note: ‘errstr’ was declared here
  851 |         const char *errstr;
      |                     ^~~~~~
cc1: all warnings being treated as errors
```

My local compiler gave another:

```
channeld/channeld.c: In function ‘resume_splice_negotiation’:
channeld/channeld.c:3734:23: error: ‘final_tx’ may be used uninitialized [-Werror=maybe-uninitialized]
 3734 |                 msg = towire_channeld_splice_confirmed_signed(tmpctx, final_tx,
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 3735 |                                                               chan_output_index);
      |                                                               ~~~~~~~~~~~~~~~~~~
channeld/channeld.c:3461:28: note: ‘final_tx’ was declared here
 3461 |         struct bitcoin_tx *final_tx;
      |                            ^~~~~~~~
cc1: all warnings being treated as errors
make: *** [Makefile:298: channeld/channeld.o] Error 1
```

So fix both.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2023-12-14 09:16:56 +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: Import sys in except clause explicitly 2023-11-21 08:24:09 +01: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 Implement is_some for cln_rpc::options::Value 2023-12-12 17:17:10 +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
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
Cargo.toml rs: Fix the manifests for publication 2023-10-26 15:51:07 +02:00
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 compiler: fix for -O3 errors. 2023-12-14 09:16:56 +10: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
Makefile fallback: json add fallback cleanup 2023-10-26 19:11:17 +10: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
README.md doc: fix wording in plugins/README.md 2020-01-06 12:57:59 +01:00
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

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