From 911700ff948a82a83f66624a9e37745fa669ebeb Mon Sep 17 00:00:00 2001 From: niftynei Date: Mon, 6 Feb 2023 16:22:23 -0600 Subject: [PATCH] df: remove minimum witness weight for input calculations We can't know how much taproot etc inputs weight will be, so we just make sure that a peer covers the known bytes, at least. --- openingd/dualopend.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/openingd/dualopend.c b/openingd/dualopend.c index e7da64ac9..f213f2c02 100644 --- a/openingd/dualopend.c +++ b/openingd/dualopend.c @@ -603,11 +603,6 @@ static size_t psbt_input_weight(struct wally_psbt *psbt, (psbt->inputs[in].redeem_script_len + (varint_t) varint_size(psbt->inputs[in].redeem_script_len)) * 4; - /* BOLT-f53ca2301232db780843e894f55d95d512f297f9 #3: - * - * The minimum witness weight for an input is 110. - */ - weight += 110; return weight; }