From ebb0b5791e397d5b9750203e7cccd93e414c6d2d Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Sun, 29 Aug 2021 12:52:47 +0930 Subject: [PATCH] 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 --- channeld/channeld.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/channeld/channeld.c b/channeld/channeld.c index 26048824e..51e43117c 100644 --- a/channeld/channeld.c +++ b/channeld/channeld.c @@ -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; }