Skip to content

Commit

Permalink
df: remove minimum witness weight for input calculations
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
niftynei committed Feb 7, 2023
1 parent caa2597 commit e279bd0
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions openingd/dualopend.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit e279bd0

Please sign in to comment.