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.
This commit is contained in:
niftynei 2023-02-06 16:22:23 -06:00 committed by Rusty Russell
parent c0cc285a0f
commit 911700ff94

View file

@ -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;
}