cln/plugins
Vincenzo Palazzo f2551091ca offer: make the blockheight nullable
However, it is possible to avoid this kind of crash, because
our assert is "wrong" because blockheight can be 0 and the
assert can fail.

In addition, the `rpc_scan` already checks for nullability, so the
assert is redundant

2024-06-07T14:14:29.278Z INFO    lightningd: v24.05-modded
2024-06-07T14:14:37.158Z INFO    lightningd: v24.05-modded
2024-06-07T14:14:29.329Z INFO    lightningd: Creating configuration directory /root/.lightning/signet
2024-06-07T14:14:37.589Z INFO    plugin-bcli: bitcoin-cli initialized and connected to bitcoind.
2024-06-07T14:14:29.715Z INFO    lightningd: Creating database
2024-06-07T14:14:37.591Z UNUSUAL lightningd: Waiting for initial block download (this can take a while!)
2024-06-07T14:14:29.752Z UNUSUAL hsmd: HSM: created new hsm_secret file
2024-06-07T14:14:37.603Z INFO    plugin-reckless-wrapper.py: initializing reckless-wrapper.py.
2024-06-07T14:14:29.798Z INFO    plugin-bcli: bitcoin-cli initialized and connected to bitcoind.
2024-06-07T14:14:29.802Z UNUSUAL lightningd: Waiting for initial block download (this can take a while!)
offers: plugins/offers.c:1235: init: Assertion `blockheight' failed.
2024-06-07T14:14:29.814Z INFO    plugin-reckless-wrapper.py: initializing reckless-wrapper.py.
offers: FATAL SIGNAL 6 (version v24.05-modded)
0x57ab55a56485 send_backtrace
2024-06-07T14:14:29.818Z INFO    plugin-chanbackup: Creating Emergency Recovery
   common/daemon.c:33
offers: plugins/offers.c:1235: init: Assertion `blockheight' failed.
offers: FATAL SIGNAL 6 (version v24.05-modded)
0x57ab55a5650d crashdump
   common/daemon.c:75
0x59f3ed3ba485 send_backtrace
0x7dd20b02213f ???
   common/daemon.c:33
   ???:0
0x59f3ed3ba50d crashdump
0x7dd20ae59ce1 ???
   common/daemon.c:75
   ???:0
0x7dd20ae43536 ???
0x764fa583813f ???
   ???:0
0x7dd20ae4340e ???
   ???:0
0x7dd20ae52661 ???
   ???:0
   ???:0
0x57ab55a3effe init
   plugins/offers.c:1235
0x764fa566fce1 ???
0x57ab55a4763f handle_init
   ???:0
   plugins/libplugin.c:1376
0x57ab55a478ee ld_command_handle
0x764fa5659536 ???
   plugins/libplugin.c:1797
0x57ab55a47ec0 ld_read_json_one
   plugins/libplugin.c:1979
   ???:0
0x57ab55a47f49 ld_read_json
0x764fa565940e ???
   plugins/libplugin.c:1999
   ???:0
0x57ab55b934cc next_plan
0x764fa5668661 ???
   ccan/ccan/io/io.c:60
   ???:0
0x57ab55b93953 do_plan
0x59f3ed3a2ffe init
   ccan/ccan/io/io.c:408
   plugins/offers.c:1235
0x57ab55b939ec io_ready
   ccan/ccan/io/io.c:418
0x59f3ed3ab63f handle_init
0x57ab55b95302 io_loop
   plugins/libplugin.c:1376
   ccan/ccan/io/poll.c:455
0x59f3ed3ab8ee ld_command_handle
0x57ab55a486dc plugin_main
   plugins/libplugin.c:1797
   plugins/libplugin.c:2209
0x59f3ed3abec0 ld_read_json_one
0x57ab55a3f36d main
   plugins/libplugin.c:1979
   plugins/offers.c:1285
0x59f3ed3abf49 ld_read_json
0x7dd20ae44d09 ???
   plugins/libplugin.c:1999
   ???:0
0x59f3ed4f74cc next_plan
0x57ab55a3c799 ???
   ccan/ccan/io/io.c:60
0x59f3ed4f7953 do_plan
   ???:0
   ccan/ccan/io/io.c:408
0xffffffffffffffff ???
0x59f3ed4f79ec io_ready
   ccan/ccan/io/io.c:418
   ???:0
offers: FATAL SIGNAL 11 (version v24.05-modded)
0x59f3ed4f9302 io_loop
   ccan/ccan/io/poll.c:455
0x57ab55a56485 send_backtrace
0x59f3ed3ac6dc plugin_main
   common/daemon.c:33
   plugins/libplugin.c:2209
0x57ab55a5650d crashdump
0x59f3ed3a336d main
   plugins/offers.c:1285
   common/daemon.c:75
0x7dd20b02213f ???
0x764fa565ad09 ???
   ???:0
   ???:0
0x59f3ed3a0799 ???
0x0 ???
   ???:0
   ???:0
2024-06-07T14:14:37.734Z INFO    plugin-offers: Killing plugin: exited before replying to init
0xffffffffffffffff ???
   ???:0
2024-06-07T14:14:37.734Z **BROKEN** plugin-offers: Plugin marked as important, shutting down lightningd!
offers: FATAL SIGNAL 11 (version v24.05-modded)
0x59f3ed3ba485 send_backtrace
   common/daemon.c:33
0x59f3ed3ba50d crashdump
   common/daemon.c:75
0x764fa583813f ???
   ???:0
0x0 ???
   ???:0
2024-06-07T14:14:29.823Z INFO    plugin-bookkeeper: Creating database
2024-06-07T14:14:29.883Z INFO    plugin-offers: Killing plugin: exited before replying to init
2024-06-07T14:14:29.883Z **BROKEN** plugin-offers: Plugin marked as important, shutting down lightningd!

Fixes: 9d75fbe237
Reported-by: @farscapian
Link: https://github.com/ElementsProject/lightning/issues/7378
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2024-06-14 10:39:02 +09:30
..
bkpr unit-test: update mocks 2024-05-20 16:58:49 -05:00
clnrest meta: update changelog for 24.05rc2 2024-05-29 20:16:44 -05:00
examples cln-plugin: Add dynamic configs and a callback for changes 2024-05-15 13:26:02 +02:00
grpc-plugin meta: bump rust versions for 24.05 release 2024-06-04 20:23:24 -05:00
renepay renepay: relax knowledge mod 2024-05-23 15:15:57 -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 meta: update changelog for 24.05rc2 2024-05-29 20:16:44 -05:00
.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 meta: bump rust versions for 24.05 release 2024-06-04 20:23:24 -05:00
chanbackup.c chanbackup: typo fix. 2024-05-29 10:34:58 -05:00
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: make the blockheight nullable 2024-06-14 10:39:02 +09:30
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).