mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-20 02:27:51 +01:00
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:
parent
c1ad7ac5cb
commit
e27eaa9343
@ -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;
|
||||
}
|
||||
|
@ -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:
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user