cln/plugins
Rusty Russell bd1798323a bookkeeper: fix assert() which happens with parallel queries.
```
bookkeeper: plugins/bkpr/bookkeeper.c:1226: parse_and_log_chain_move: Assertion `e->db_id > bkpr->chainmoves_index' failed.
bookkeeper: FATAL SIGNAL 6 (version v25.09-245-g901714b-modded)
0x5d7d8718b40f send_backtrace
        common/daemon.c:36
0x5d7d8718b4ab crashdump
        common/daemon.c:81
0x7a6086c4532f ???
        ./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x7a6086c9eb2c __pthread_kill_implementation
        ./nptl/pthread_kill.c:44
0x7a6086c9eb2c __pthread_kill_internal
        ./nptl/pthread_kill.c:78
0x7a6086c9eb2c __GI___pthread_kill
        ./nptl/pthread_kill.c:89
0x7a6086c4527d __GI_raise
        ../sysdeps/posix/raise.c:26
0x7a6086c288fe __GI_abort
        ./stdlib/abort.c:79
0x7a6086c2881a __assert_fail_base
        ./assert/assert.c:96
0x7a6086c3b516 __assert_fail
        ./assert/assert.c:105
0x5d7d8717505d parse_and_log_chain_move
        plugins/bkpr/bookkeeper.c:1226
0x5d7d871754f4 listchainmoves_done
        plugins/bkpr/bookkeeper.c:169
0x5d7d87182a4b handle_rpc_reply
        plugins/libplugin.c:1072
0x5d7d87182b5c rpc_conn_read_response
        plugins/libplugin.c:1361
0x5d7d871ba660 next_plan
        ccan/ccan/io/io.c:60
0x5d7d871bab31 do_plan
        ccan/ccan/io/io.c:422
0x5d7d871babee io_ready
        ccan/ccan/io/io.c:439
```

Reported-by: @michael1011
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Fixed: plugins: assertion crash in bookkeeper when fresh records arrive while multiple queries in progress.
2025-11-03 14:03:25 +10:30
..
askrene askrene: implement 10-second deadline. 2025-11-03 12:54:37 +10:30
bip353-plugin docker: Dockerfile fixes after poetry to uv migration 2025-09-09 10:46:23 +09:30
bkpr bookkeeper: fix assert() which happens with parallel queries. 2025-11-03 14:03:25 +10:30
examples cln-plugin: trace level logging support 2025-05-05 09:31:22 -07:00
grpc-plugin plugins: generate certificates with required extensions 2025-08-26 13:52:15 +09:30
lsps-plugin rust: Bump cln-plugin==0.5 2025-08-19 15:47:58 +09:30
renepay global: remove unnecessary includes from headers. 2025-10-23 06:44:04 +10:30
rest-plugin clnrest: change utoipa to my GH branch with daywalker90's deterministic PR merged. 2025-10-26 20:31:45 +10:30
spender plugins: fix %*.s typo. 2025-10-24 11:28:57 +10:30
src cln-plugin: adapt send_custom_notification to send modern-style notifications. 2025-08-18 10:01:07 +09:30
test global: remove unnecessary includes from C files. 2025-10-23 06:44:04 +10:30
wss-proxy-plugin plugins: generate certificates with required extensions 2025-08-26 13:52:15 +09:30
xpay global: remove unnecessary includes from headers. 2025-10-23 06:44:04 +10:30
.gitignore lsps: Add service implementation for LSPS0 2025-05-02 13:34:21 -07:00
autoclean.c global: remove unnecessary includes from C files. 2025-10-23 06:44:04 +10:30
bcli.c ccan: update to get improved grab_file API, and adapt code. 2025-10-26 12:37:58 +10:30
Cargo.toml rust: Bump cln-plugin==0.5 2025-08-19 15:47:58 +09:30
chanbackup.c ccan: update to get improved grab_file API, and adapt code. 2025-10-26 12:37:58 +10:30
channel_hint.c common: add new_htable() macro to allocate, initialize and setup memleak coverage for any typed hash table. 2025-10-24 11:30:17 +10:30
channel_hint.h global: remove unnecessary includes from headers. 2025-10-23 06:44:04 +10:30
commando.c global: remove unnecessary includes from C files. 2025-10-23 06:44:04 +10:30
establish_onion_path.c global: remove unnecessary includes from C files. 2025-10-23 06:44:04 +10:30
establish_onion_path.h global: remove unnecessary includes from headers. 2025-10-23 06:44:04 +10:30
exposesecret.c ccan: update to get improved grab_file API, and adapt code. 2025-10-26 12:37:58 +10:30
fetchinvoice.c global: remove unnecessary includes from C files. 2025-10-23 06:44:04 +10:30
fetchinvoice.h plugins: cancelrecurringinvoice command. 2025-10-01 15:31:30 +09:30
funder.c plugins: fix %*.s typo. 2025-10-24 11:28:57 +10:30
funder_policy.c global: remove unnecessary includes from C files. 2025-10-23 06:44:04 +10:30
funder_policy.h libplugin: allow display of default values. 2024-05-15 15:50:54 -05:00
keysend.c plugins: remove unused json_buffer / json_toks members from libplugin-pay. 2025-10-24 11:28:57 +10:30
libplugin-pay.c global: remove unnecessary includes from C files. 2025-10-23 06:44:04 +10:30
libplugin-pay.h plugins: remove unused json_buffer / json_toks members from libplugin-pay. 2025-10-24 11:28:57 +10:30
libplugin.c libplugin: use jsonrpc_io logic for sync requests too. 2025-10-24 11:28:57 +10:30
libplugin.h global: remove unnecessary includes from headers. 2025-10-23 06:44:04 +10:30
Makefile Makefiles: remove redundant dependencies, and have objects depend on their Makefile. 2025-10-23 06:44:04 +10:30
offers.c global: remove unnecessary includes from C files. 2025-10-23 06:44:04 +10:30
offers.h offers: don't send blinded path to neighbor for *invoices*. 2025-02-27 13:53:10 -06:00
offers_inv_hook.c global: remove unnecessary includes from C files. 2025-10-23 06:44:04 +10:30
offers_inv_hook.h offers: check they use the blinded path if one is specified. 2024-07-17 10:57:11 +02:00
offers_invreq_hook.c global: remove unnecessary includes from C files. 2025-10-23 06:44:04 +10:30
offers_invreq_hook.h offers: check they use the blinded path if one is specified. 2024-07-17 10:57:11 +02:00
offers_offer.c global: remove unnecessary includes from C files. 2025-10-23 06:44:04 +10:30
offers_offer.h plugins: move fetchinvoice functionality into offers plugin. 2024-07-17 10:57:11 +02:00
pay.c plugins: remove unused json_buffer / json_toks members from libplugin-pay. 2025-10-24 11:28:57 +10:30
README.md doc: fix wording in plugins/README.md 2020-01-06 12:57:59 +01:00
recklessrpc.c global: remove unnecessary includes from C files. 2025-10-23 06:44:04 +10:30
recover.c global: remove unnecessary includes from C files. 2025-10-23 06:44:04 +10:30
sql.c global: remove unnecessary includes from C files. 2025-10-23 06:44:04 +10:30
topology.c global: remove unnecessary includes from C files. 2025-10-23 06:44:04 +10:30
txprepare.c plugins: fix %*.s typo. 2025-10-24 11:28:57 +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).