mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-04 11:08:03 +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:
parent
bc1eab8646
commit
ebb0b5791e
1 changed files with 0 additions and 12 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue