Files
lightning/lightningd
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
..
2023-07-11 11:41:15 +09:30
2023-07-23 13:48:37 +09:30
2022-03-10 09:40:09 +10:30
2022-09-19 10:18:55 +09:30
2023-07-19 19:13:57 +09:30
2023-07-23 13:48:37 +09:30
2023-07-23 13:48:37 +09:30
2023-07-19 19:13:57 +09:30