Skip to content

Commit ebd44ab

Browse files
committed
sweep: fix sweep fee estimation for p2tr outputs
1 parent 9c30101 commit ebd44ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sweep/sweeper.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,8 @@ func (s *Sweeper) GetSweepFee(ctx context.Context,
198198
weightEstimate.AddP2SHOutput()
199199
case *btcutil.AddressPubKeyHash:
200200
weightEstimate.AddP2PKHOutput()
201+
case *btcutil.AddressTaproot:
202+
weightEstimate.AddP2TROutput()
201203
default:
202204
return 0, fmt.Errorf("unknown address type %T", destAddr)
203205
}

0 commit comments

Comments
 (0)