cln/wallet
Rusty Russell f4b7f513ee lightningd: allow account db version 18.
If you have run recent master, upgrade will fail with:

```
Cannot migrate account database version 18
```

The final migration is:

```
	/* We used to send anchors to the wallet, but set ignored tag.  Now we send
	 * them to external. */
	{SQL("UPDATE chain_events"
	     " SET account_id = (SELECT id FROM accounts WHERE name = 'external')"
	     " WHERE account_id = (SELECT id FROM accounts WHERE name = 'wallet')"
	     " AND ignored = 1"), NULL},
```

Which is harmless (we do that upgrade ourselves on migration, but if it's done already that will have no effect).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2025-08-21 13:21:17 +09:30
..
test wallet: generate fixup chainmoves and channelmoves when first starting. 2025-08-19 13:37:50 +09:30
.gitignore reorganize .gitignore entries across subdirs. 2021-05-18 09:43:50 +09:30
account_migration.c lightningd: allow account db version 18. 2025-08-21 13:21:17 +09:30
account_migration.h lightningd: migrate events from bookkeeper at startup. 2025-08-19 13:37:50 +09:30
db.c lightningd: migrate events from bookkeeper at startup. 2025-08-19 13:37:50 +09:30
db.h db: migrate old runes table to fix up id fields. 2023-08-31 05:33:15 +09:30
invoices.c lightningd: migrate events from bookkeeper at startup. 2025-08-19 13:37:50 +09:30
invoices.h lightningd: remove delexpiredinvoice 2024-03-25 15:02:35 +10:30
Makefile lightningd: migrate events from bookkeeper at startup. 2025-08-19 13:37:50 +09:30
psbt_fixup.c wallet/psbt_fixup: routine to fix invalid PBSTs which modern libwally won't load. 2023-03-31 09:16:25 +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 common/utxo: use a real type for the UTXO, not a boolean is_p2sh. 2025-05-06 12:27:53 +09:30
txfilter.c wallet: create htable to store scriptpubkeys for issued indexes. 2025-02-13 15:42:51 -06:00
txfilter.h wallet: create htable to store scriptpubkeys for issued indexes. 2025-02-13 15:42:51 -06:00
wallet.c wallet: generate fixup chainmoves and channelmoves when first starting. 2025-08-19 13:37:50 +09:30
wallet.h lightningd: migrate events from bookkeeper at startup. 2025-08-19 13:37:50 +09:30
walletrpc.c wallet: record all coin movements into chain_moves or channel_moves tables. 2025-08-19 13:37:50 +09:30
walletrpc.h wallet: save keytype when issuing new address. 2024-11-17 20:27:13 +10:30