mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-03 05:04:21 +01:00
Don't limit channel_updates to 2^32 msat.
We're in a post-Wumbo world now! See also https://github.com/lightningnetwork/lightning-rfc/pull/902 Fixes: #4746 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -272,18 +272,6 @@ static struct amount_msat advertized_htlc_max(const struct channel *channel)
|
||||
&lower_bound));
|
||||
}
|
||||
|
||||
if (amount_msat_greater(lower_bound_msat, chainparams->max_payment))
|
||||
/* BOLT #7:
|
||||
*
|
||||
* The origin node:
|
||||
* ...
|
||||
* - if the `htlc_maximum_msat` field is present:
|
||||
* ...
|
||||
* - for channels with `chain_hash` identifying the Bitcoin blockchain:
|
||||
* - MUST set this to less than 2^32.
|
||||
*/
|
||||
lower_bound_msat = chainparams->max_payment;
|
||||
|
||||
return lower_bound_msat;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user