Skip to content

Commit ea41432

Browse files
committed
build, shadows: fix broken build (no shadows)
Merged a commit that broke everything with shadows, which turned out to be the bookkeeper code.
1 parent 0d5808b commit ea41432

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

plugins/bkpr/bookkeeper.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ static struct command_result *json_balance_snapshot(struct command *cmd,
10631063
|| !amount_msat_zero(debit_diff)) {
10641064
struct account *acct;
10651065
struct channel_event *ev;
1066-
u64 timestamp;
1066+
u64 timestamp_now;
10671067

10681068
/* This is *expected* on first run of bookkeeper! */
10691069
plugin_log(cmd->plugin,
@@ -1079,7 +1079,7 @@ static struct command_result *json_balance_snapshot(struct command *cmd,
10791079
&credit_diff),
10801080
acct_name);
10811081

1082-
timestamp = time_now().ts.tv_sec;
1082+
timestamp_now = time_now().ts.tv_sec;
10831083

10841084
/* Log a channel "journal entry" to get
10851085
* the balances inline */
@@ -1103,7 +1103,7 @@ static struct command_result *json_balance_snapshot(struct command *cmd,
11031103
info = tal(new_accts, struct new_account_info);
11041104
info->acct = tal_steal(info, acct);
11051105
info->curr_bal = snap_balance;
1106-
info->timestamp = timestamp;
1106+
info->timestamp = timestamp_now;
11071107
info->currency =
11081108
tal_strdup(info, currency);
11091109

plugins/bkpr/db.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,7 @@ static bool db_migrate(struct plugin *p, struct db *db, bool *created)
126126
while (current < available) {
127127
current++;
128128
if (db_migrations[current].sql) {
129-
struct db_stmt *stmt =
130-
db_prepare_v2(db, db_migrations[current].sql);
129+
stmt = db_prepare_v2(db, db_migrations[current].sql);
131130
db_exec_prepared_v2(take(stmt));
132131
}
133132
if (db_migrations[current].func)

0 commit comments

Comments
 (0)