core-lightning/plugins
Vincenzo Palazzo fbecefe5ac offer: fix type to the getchaininfo rpc
This is violate what the docs of getchainfo is telling us that the
last_block_height is a u64.

```
2024-05-17T09:53:23.464Z **BROKEN** plugin-offers: Got error reply to getchaininfo: '{\"error\":{\"code\":-1,\"data\":null,\"message\":\"invalid type: string \\\"0\\\", expected u64\"},\"id\":\"init/offers:getchaininfo#1\",\"jsonrpc\":\"2.0\"}\n\n'
2024-05-17T09:53:23.496Z INFO    plugin-offers: Killing plugin: exited before replying to init
2024-05-17T09:53:23.496Z **BROKEN** plugin-offers: Plugin marked as important, shutting down lightningd!
2024-05-17T09:53:23.496Z DEBUG   lightningd: io_break: lightningd_exit
2024-05-17T09:53:23.496Z **BROKEN** plugin-topology: Reading JSON input: Connection reset by peer
2024-05-17T09:53:23.504Z INFO    plugin-topology: Killing plugin: exited before replying to init
2024-05-17T09:53:23.504Z **BROKEN** plugin-topology: Plugin marked as important, shutting down lightningd!
2024-05-17T09:53:23.504Z DEBUG   lightningd: io_break: lightningd_exit
2024-05-17T09:53:23.504Z DEBUG   plugin-bookkeeper: Setting up database at sqlite3://accounts.sqlite3
2024-05-17T09:53:23.504Z DEBUG   connectd: REPLY WIRE_CONNECTD_START_SHUTDOWN_REPLY with 0 fds
2024-05-17T09:53:23.504Z DEBUG   lightningd: io_break: connectd_start_shutdown_reply
```

Fixing the following crash

```
Got error reply to getchaininfo: '{"error":{"code":-1,"data":null,"message":"invalid type: string \"0\", expected u64"},"id":"init/offers:getchaininfo#1","jsonrpc":"2.0"}

'lightningd: lightningd already running? Error locking PID file: Resource temporarily unavailable
```

Fixes: 847208f5d8
Changelog-None: offer: fix type to the getchaininfo rpc
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2024-05-22 07:46:39 -05:00
..
bkpr unit-test: update mocks 2024-05-20 16:58:49 -05:00
clnrest plugin/clnrest: Adding new config param as clnrest-swagger-root 2024-04-24 11:13:27 -05:00
examples cln-plugin: Add dynamic configs and a callback for changes 2024-05-15 13:26:02 +02:00
grpc-plugin grpc-plugin: Implement notifications 2024-05-16 14:00:18 +02:00
renepay renepay: clean unit tests 2024-05-20 16:58:49 -05:00
spender dualopend: remove min_witness_weight requirement 2024-05-09 16:14:23 -05:00
src cln-plugin: fix over-escaping rpc errors 2024-05-15 13:26:02 +02:00
test libplugin: allow display of default values. 2024-05-15 15:50:54 -05:00
wss-proxy plugins/wss-proxy: Adding WSS Proxy plugin 2024-04-22 09:12:09 +09:30
.gitignore Plugins: Add recover plugin which'd identify if we've lost some state and try to recover the node by entering mode. 2024-02-16 22:17:46 +01:00
autoclean.c libplugin: allow display of default values. 2024-05-15 15:50:54 -05:00
bcli.c bcli: make last height optional 2024-05-22 07:46:39 -05:00
Cargo.toml rs: bump crate versions for v24.02.1 2024-03-08 14:53:45 +01:00
chanbackup.c common: remove type_to_string files altogther. 2024-03-20 13:51:48 +10:30
commando.c plugins: remove allowance for missing JSON id in commando. 2024-03-25 15:02:35 +10:30
establish_onion_path.c plugins: generalize "connect if we can't route" logic, link into offers plugin. 2024-05-14 18:16:26 -05:00
establish_onion_path.h plugin/offers: connect if necessary for replying to invoice_request. 2024-05-14 18:16:26 -05:00
fetchinvoice.c libplugin: allow display of default values. 2024-05-15 15:50:54 -05:00
funder.c libplugin: allow display of default values. 2024-05-15 15:50:54 -05:00
funder_policy.c libplugin: allow display of default values. 2024-05-15 15:50:54 -05:00
funder_policy.h libplugin: allow display of default values. 2024-05-15 15:50:54 -05:00
keysend.c BOLT: update to include 2016 for max_htlc_cltv. 2024-05-09 16:14:23 -05:00
libplugin-pay.c pay: fix bolt12 blinded path cltv logic. 2024-05-15 10:55:16 -05:00
libplugin-pay.h pay: fix bolt12 blinded path cltv logic. 2024-05-15 10:55:16 -05:00
libplugin.c core: notify plugins when a log line is emitted. 2024-05-17 13:03:12 -05:00
libplugin.h libplugin: allow display of default values. 2024-05-15 15:50:54 -05:00
Makefile core: notify plugins when a log line is emitted. 2024-05-17 13:03:12 -05:00
offers.c offer: fix type to the getchaininfo rpc 2024-05-22 07:46:39 -05:00
offers.h plugin/offers: connect if necessary for replying to invoice_request. 2024-05-14 18:16:26 -05:00
offers_inv_hook.c common: remove type_to_string files altogther. 2024-03-20 13:51:48 +10:30
offers_inv_hook.h lightningd: re-add 'offerout' functionality, as 'invoicerequest'. 2022-11-09 15:08:03 +01:00
offers_invreq_hook.c offers: add final node's CLTV delta in when creating blinded path payinfo. 2024-05-15 10:55:16 -05:00
offers_invreq_hook.h plugin/offers: connect if necessary for replying to invoice_request. 2024-05-14 18:16:26 -05:00
offers_offer.c lightningd: deprecate @-prefix hack for offer recurrence_base. 2024-02-07 09:21:00 +10:30
offers_offer.h lightningd: re-add 'offerout' functionality, as 'invoicerequest'. 2022-11-09 15:08:03 +01:00
pay.c libplugin: allow display of default values. 2024-05-15 15:50:54 -05:00
README.md doc: fix wording in plugins/README.md 2020-01-06 12:57:59 +01:00
recover.c common: remove type_to_string files altogther. 2024-03-20 13:51:48 +10:30
sql.c plugins: two minor things I noticed. 2024-05-15 15:50:54 -05:00
topology.c remove is_local variable from listpeerchannels cb 2024-04-03 10:07:13 +10:30
txprepare.c common: remove type_to_string files altogther. 2024-03-20 13:51:48 +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).