cln/wallet
wqxoxo f318c13bf5 db: add STRICT tables with migration for old databases
Enables STRICT tables in developer mode, but old databases (~2019) may
have BLOB values in TEXT columns. Migration converts BLOB faildetail
to TEXT with UTF-8 validation, NULLs invalid data.

STRICT is only applied to fresh databases; existing databases being
upgraded skip STRICT to avoid type affinity issues with legacy data.

Also adds security pragmas in developer mode: trusted_schema=OFF,
cell_size_check=ON.

Fixes #5390.

Changelog-Added: Database: STRICT tables and security pragmas in developer mode
Changelog-Fixed: Database migration for old BLOB-typed faildetail values
2026-02-23 15:55:55 +10:30
..
test wallet: conduct unit tests with both bip86 and bip32. 2026-01-27 09:32:49 +10:30
.gitignore reorganize .gitignore entries across subdirs. 2021-05-18 09:43:50 +09:30
account_migration.c wallet: separate migration table into its own source file. 2025-11-28 09:16:53 +10:30
account_migration.h lightningd: migrate events from bookkeeper at startup. 2025-08-19 13:37:50 +09:30
datastore.c wallet: separate datastore access functions for the lightning-downgrade tool to access. 2025-11-28 09:16:53 +10:30
datastore.h wallet: separate datastore access functions for the lightning-downgrade tool to access. 2025-11-28 09:16:53 +10:30
db.c db: add STRICT tables with migration for old databases 2026-02-23 15:55:55 +10:30
db.h wallet: separate migration table into its own source file. 2025-11-28 09:16:53 +10:30
invoices.c global: use clock_time in place of time_now(). 2025-11-13 21:21:29 +10:30
invoices.h lightningd: remove delexpiredinvoice 2024-03-25 15:02:35 +10:30
Makefile wallet: separate datastore access functions for the lightning-downgrade tool to access. 2025-11-28 09:16:53 +10:30
migrations.c db: add STRICT tables with migration for old databases 2026-02-23 15:55:55 +10:30
migrations.h db: add STRICT tables with migration for old databases 2026-02-23 15:55:55 +10:30
psbt_fixup.c global: remove unnecessary includes from C files. 2025-10-23 06:44:04 +10:30
psbt_fixup.h wallet/psbt_fixup: routine to fix invalid PBSTs which modern libwally won't load. 2023-03-31 09:16:25 +10:30
reservation.c wallet: use correct derivation for elements when using mnemonic hsm_secret. 2026-01-14 17:18:56 +10:30
txfilter.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
txfilter.h 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
wallet.c lightningd: fix db constraint error when fixing up old blocks. 2025-12-11 12:16:42 +10:30
wallet.h lightningd: fix db constraint error when fixing up old blocks. 2025-12-11 12:16:42 +10:30
walletrpc.c wallet: change dev_listaddrs to also list bip86 addresses 2026-01-14 17:18:56 +10:30
walletrpc.h wallet: save keytype when issuing new address. 2024-11-17 20:27:13 +10:30