Skip to content

Commit ebb0b57

Browse files
committed
Don't limit channel_updates to 2^32 msat.
We're in a post-Wumbo world now! See also lightning/bolts#902 Fixes: #4746 Signed-off-by: Rusty Russell <[email protected]>
1 parent bc1eab8 commit ebb0b57

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

channeld/channeld.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -272,18 +272,6 @@ static struct amount_msat advertized_htlc_max(const struct channel *channel)
272272
&lower_bound));
273273
}
274274

275-
if (amount_msat_greater(lower_bound_msat, chainparams->max_payment))
276-
/* BOLT #7:
277-
*
278-
* The origin node:
279-
* ...
280-
* - if the `htlc_maximum_msat` field is present:
281-
* ...
282-
* - for channels with `chain_hash` identifying the Bitcoin blockchain:
283-
* - MUST set this to less than 2^32.
284-
*/
285-
lower_bound_msat = chainparams->max_payment;
286-
287275
return lower_bound_msat;
288276
}
289277

0 commit comments

Comments
 (0)