mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-23 17:14:22 +01:00
Fixes msat and sat convention in the error message
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
This commit is contained in:
committed by
Rusty Russell
parent
67220ca31d
commit
015627cdee
@@ -133,6 +133,9 @@ bool check_config_bounds(const tal_t *ctx,
|
|||||||
* set by lightningd, don't bother opening it. */
|
* set by lightningd, don't bother opening it. */
|
||||||
if (amount_msat_greater_sat(min_effective_htlc_capacity,
|
if (amount_msat_greater_sat(min_effective_htlc_capacity,
|
||||||
capacity)) {
|
capacity)) {
|
||||||
|
struct amount_sat min_effective_htlc_capacity_sat =
|
||||||
|
amount_msat_to_sat_round_down(min_effective_htlc_capacity);
|
||||||
|
|
||||||
*err_reason = tal_fmt(ctx,
|
*err_reason = tal_fmt(ctx,
|
||||||
"channel capacity with funding %s,"
|
"channel capacity with funding %s,"
|
||||||
" reserves %s/%s,"
|
" reserves %s/%s,"
|
||||||
@@ -148,8 +151,8 @@ bool check_config_bounds(const tal_t *ctx,
|
|||||||
&remoteconf->max_htlc_value_in_flight),
|
&remoteconf->max_htlc_value_in_flight),
|
||||||
type_to_string(ctx, struct amount_sat,
|
type_to_string(ctx, struct amount_sat,
|
||||||
&capacity),
|
&capacity),
|
||||||
type_to_string(ctx, struct amount_msat,
|
type_to_string(ctx, struct amount_sat,
|
||||||
&min_effective_htlc_capacity));
|
&min_effective_htlc_capacity_sat));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user