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 <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2021-06-28 13:52:03 +09:30
parent c1ad7ac5cb
commit e27eaa9343
2 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ static bool closing_fee_is_acceptable(struct lightningd *ld,
if (amount_sat_less(fee, min_fee)) {
log_debug(channel->log, "... That's below our min %s"
" for weight %"PRIu64" at feerate %u",
type_to_string(tmpctx, struct amount_sat, &fee),
type_to_string(tmpctx, struct amount_sat, &min_fee),
weight, min_feerate);
return false;
}

View File

@ -443,7 +443,7 @@ invoice_check_payment(const tal_t *ctx,
log_debug(ld->log, "Attept to pay %s with amount %s > %s",
type_to_string(tmpctx, struct sha256,
&details->rhash),
type_to_string(tmpctx, struct amount_msat, details->msat),
type_to_string(tmpctx, struct amount_msat, &msat),
type_to_string(tmpctx, struct amount_msat, &twice));
/* BOLT #4:
*