Skip to content

Commit

Permalink
rebase on latest master, update deprecated type_to_string calls
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisguida committed Apr 23, 2024
1 parent 99f70f8 commit 109da8d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions plugins/bkpr/bookkeeper.c
Original file line number Diff line number Diff line change
Expand Up @@ -1724,10 +1724,10 @@ static struct command_result *json_utxo_deposit(struct command *cmd, const char

plugin_log(cmd->plugin, LOG_DBG, "%s (%s|%s) %s -%s %"PRIu64" %d %s",
move_tag, ev.tag, ev.acct_name,
type_to_string(tmpctx, struct amount_msat, &ev.credit),
type_to_string(tmpctx, struct amount_msat, &ev.debit),
fmt_amount_msat(tmpctx, ev.credit),
fmt_amount_msat(tmpctx, ev.debit),
ev.timestamp, ev.blockheight,
type_to_string(tmpctx, struct bitcoin_outpoint, &ev.outpoint));
fmt_bitcoin_outpoint(tmpctx, &ev.outpoint));

if (!log_chain_event(cmd, db, acct, &ev)) {
db_commit_transaction(db);
Expand Down Expand Up @@ -1800,11 +1800,11 @@ static struct command_result *json_utxo_spend(struct command *cmd, const char *b

plugin_log(cmd->plugin, LOG_DBG, "%s (%s|%s) %s -%s %"PRIu64" %d %s %s",
move_tag, ev.tag, acct_name,
type_to_string(tmpctx, struct amount_msat, &ev.credit),
type_to_string(tmpctx, struct amount_msat, &ev.debit),
fmt_amount_msat(tmpctx, ev.credit),
fmt_amount_msat(tmpctx, ev.debit),
ev.timestamp, ev.blockheight,
type_to_string(tmpctx, struct bitcoin_outpoint, &ev.outpoint),
type_to_string(tmpctx, struct bitcoin_txid, ev.spending_txid));
fmt_bitcoin_outpoint(tmpctx, &ev.outpoint),
fmt_bitcoin_txid(tmpctx, ev.spending_txid));

if (!log_chain_event(cmd, db, acct, &ev)) {
db_commit_transaction(db);
Expand Down

0 comments on commit 109da8d

Please sign in to comment.