Particularly useful if we do something outside a transaction if I mess up the code, e.g: ``` bookkeeper: Attempting to prepare a db_stmt outside of a transaction: plugins/bkpr/recorder.c:591 (version v25.05-112-g4daf355-modded) 0x5caefda2414b send_backtrace common/daemon.c:33 0x5caefda08a30 db_error plugins/bkpr/db.c:133 0x5caefda4cb32 db_fatal db/utils.c:322 0x5caefda4cc9e db_prepare_v2_ db/utils.c:103 0x5caefda0dcbe get_chain_events_by_id plugins/bkpr/recorder.c:591 0x5caefda063ce json_edit_desc_payment_id plugins/bkpr/bookkeeper.c:550 0x5caefda13ad3 ld_command_handle plugins/libplugin.c:2185 0x5caefda13d27 ld_read_json_one plugins/libplugin.c:2274 0x5caefda13dba ld_read_json plugins/libplugin.c:2294 0x5caefdab5478 next_plan ccan/ccan/io/io.c:60 0x5caefdab5949 do_plan ccan/ccan/io/io.c:422 0x5caefdab5a06 io_ready ccan/ccan/io/io.c:439 0x5caefdab7375 io_loop ccan/ccan/io/poll.c:455 0x5caefda1420c plugin_main plugins/libplugin.c:2507 0x5caefda07762 main plugins/bkpr/bookkeeper.c:2048 0x79a7c522a1c9 __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 0x79a7c522a28a __libc_start_main_impl ../csu/libc-start.c:360 0x5caefda00374 ??? ???:0 0xffffffffffffffff ??? ???:0 Attempting to prepare a db_stmt outside of a transaction: plugins/bkpr/recorder.c:591 ```
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).