Skip to content

Commit d9a1b37

Browse files
committed
bkpr: restore run-recorder.
This requires us to turn "sql" calls into calls to a local db, which means pulling in a lot of infrastructure. But it's possible. Signed-off-by: Rusty Russell <[email protected]>
1 parent f68bcea commit d9a1b37

File tree

4 files changed

+1681
-58
lines changed

4 files changed

+1681
-58
lines changed

plugins/bkpr/sql.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,9 @@ struct command_result;
4343
" AND et.extra_tags = 'splice') AS spliced" \
4444
" FROM chainmoves cm "
4545

46-
const jsmntok_t *
47-
PRINTF_FMT(4, 5) sql_req(const tal_t *ctx,
48-
struct command *cmd, const char **buf,
49-
const char *fmt, ...);
46+
const jsmntok_t *PRINTF_FMT(4, 5) sql_req(const tal_t *ctx,
47+
struct command *cmd, const char **buf,
48+
const char *fmt, ...);
5049

5150
const jsmntok_t *sql_reqv(const tal_t *ctx,
5251
struct command *cmd, const char **buf,

plugins/bkpr/test/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ BOOKKEEPER_TEST_COMMON_OBJS := \
1313
common/channel_type.o \
1414
common/coin_mvt.o \
1515
common/features.o \
16+
common/json_parse.o \
1617
common/json_stream.o \
1718
common/json_parse_simple.o \
1819
common/key_derive.o \

0 commit comments

Comments
 (0)