Skip to content

Commit ed6fbb8

Browse files
authored
[Common] Fix forfeit tx size estimation (#464)
1 parent a447114 commit ed6fbb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/fees.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func ComputeForfeitTxFee(
3434
) (uint64, error) {
3535
txWeightEstimator := &input.TxWeightEstimator{}
3636

37-
txWeightEstimator.AddP2PKHInput() // connector input
37+
txWeightEstimator.AddTaprootKeySpendInput(txscript.SigHashDefault) // connector input
3838
txWeightEstimator.AddTapscriptInput(
3939
lntypes.WeightUnit(witnessSize),
4040
tapscript,

0 commit comments

Comments
 (0)