mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
chore: adds missing WARN_UNUSED to amount_msat_from_sat_u64
This commit is contained in:
committed by
neil saitug
parent
c84cade270
commit
2011bcb397
@@ -664,8 +664,9 @@ static void channel_config(struct lightningd *ld,
|
||||
*max_to_self_delay = ld->config.locktime_max;
|
||||
|
||||
/* Take minimal effective capacity from config min_capacity_sat */
|
||||
amount_msat_from_sat_u64(min_effective_htlc_capacity,
|
||||
ld->config.min_capacity_sat);
|
||||
if (!amount_msat_from_sat_u64(min_effective_htlc_capacity,
|
||||
ld->config.min_capacity_sat))
|
||||
fatal("amount_msat overflow for config.min_capacity_sat");
|
||||
|
||||
/* BOLT #2:
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user