cln/plugins
Rusty Russell 5106440c32 bookkeeper: fix restoration of derived wallet blockheights on restart.
We complain:
```
lightningd-1 2025-10-31T00:55:00.377Z **BROKEN** plugin-bookkeeper: Unparsable blockheight datastore entry: {"key":["bookkeeper","blockheights","756999f870a7a7c97f5c143f12b9096a50d1b1acd74aeb9ab2dc251a5c361494"],"generation":0,"hex":"00000067"}
```

And we don't have the blockheight:

```
                   {
                       'account': 'external',
         -             'blockheight': 103,
         ?                            - -
         +             'blockheight': 0,
                       'credit_msat': 555555000,
                       'currency': 'bcrt',
                       'debit_msat': 0,
                       'origin': 'wallet',
                       'outpoint': '756999f870a7a7c97f5c143f12b9096a50d1b1acd74aeb9ab2dc251a5c361494:0',
                       'tag': 'deposit',
                       'timestamp': 1761872097,
                       'type': 'chain',
                   },
```

Reported-by: @michael1011
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Fixed: Plugins: `bookkeeper` now correctly restores chain event blockheights it has derived.
2025-11-03 12:36:38 +10:30
..
askrene 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
bip353-plugin docker: Dockerfile fixes after poetry to uv migration 2025-09-09 10:46:23 +09:30
bkpr bookkeeper: fix restoration of derived wallet blockheights on restart. 2025-11-03 12:36:38 +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).