rgb-cln/wallet
Rusty Russell e39c80bf8b lightningd: simplify datastore internal db API.
The wallet_datastore_first() SELECT statement only iterates from the
given key (if any), relying on the caller to notice when the key no
longer applies.  (e.g. startkey = ["foo", "bar"] will return key
["foo", "bar"] then ["foo", "bar", "child" ], then ["foo", "baz"]).

The only caller (listdatastore) would notice the keychange and stop
looping, but reallly wallet_datastore_next() should do this.  When I
tried to use it for migrations, I got very confused!

Also, several places want a simple "wallet_datastore_get()" function,
so provide that.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2023-07-25 14:47:12 +09:30
..
test db: infrastructure to initialize indexes. 2023-07-23 13:48:37 +09:30
.gitignore reorganize .gitignore entries across subdirs. 2021-05-18 09:43:50 +09:30
Makefile wallet/psbt_fixup: routine to fix invalid PBSTs which modern libwally won't load. 2023-03-31 09:16:25 +10:30
db.c listinvoices: add index and start params. 2023-07-23 13:48:37 +09:30
db.h db: infrastructure to initialize indexes. 2023-07-23 13:48:37 +09:30
invoices.c lightningd: expose created_index and updated_index fields. 2023-07-23 13:48:37 +09:30
invoices.h listinvoices: add limit param. 2023-07-23 13:48:37 +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 Support p2tr deposit addresses 2023-07-11 11:41:15 +09:30
txfilter.c txfilter_add_derkey: track p2tr scripts 2023-07-11 11:41:15 +09:30
txfilter.h txfilter_add_derkey: track p2tr scripts 2023-07-11 11:41:15 +09:30
wallet.c lightningd: simplify datastore internal db API. 2023-07-25 14:47:12 +09:30
wallet.h lightningd: simplify datastore internal db API. 2023-07-25 14:47:12 +09:30
walletrpc.c Support p2tr deposit addresses 2023-07-11 11:41:15 +09:30
walletrpc.h daemons: remove unused functions or make static. 2021-12-06 10:05:39 +10:30