Skip to content

Commit a665699

Browse files
committed
lightningd: fix typo in debug statements.
Show amount they were trying to pay with, not invoice amount. Also, show min fee in closing, not fee they offered. Signed-off-by: Rusty Russell <[email protected]>
1 parent b840e57 commit a665699

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lightningd/closing_control.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ static bool closing_fee_is_acceptable(struct lightningd *ld,
7979
if (amount_sat_less(fee, min_fee)) {
8080
log_debug(channel->log, "... That's below our min %s"
8181
" for weight %"PRIu64" at feerate %u",
82-
type_to_string(tmpctx, struct amount_sat, &fee),
82+
type_to_string(tmpctx, struct amount_sat, &min_fee),
8383
weight, min_feerate);
8484
return false;
8585
}

lightningd/invoice.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ invoice_check_payment(const tal_t *ctx,
443443
log_debug(ld->log, "Attept to pay %s with amount %s > %s",
444444
type_to_string(tmpctx, struct sha256,
445445
&details->rhash),
446-
type_to_string(tmpctx, struct amount_msat, details->msat),
446+
type_to_string(tmpctx, struct amount_msat, &msat),
447447
type_to_string(tmpctx, struct amount_msat, &twice));
448448
/* BOLT #4:
449449
*

0 commit comments

Comments
 (0)