From ebd44ab4c2222254ece0be0976a9bbec3abfcdfd Mon Sep 17 00:00:00 2001 From: Andras Banki-Horvath Date: Thu, 6 Oct 2022 23:27:03 +0200 Subject: [PATCH] sweep: fix sweep fee estimation for p2tr outputs --- sweep/sweeper.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sweep/sweeper.go b/sweep/sweeper.go index 28d2bfe..a56c57b 100644 --- a/sweep/sweeper.go +++ b/sweep/sweeper.go @@ -198,6 +198,8 @@ func (s *Sweeper) GetSweepFee(ctx context.Context, weightEstimate.AddP2SHOutput() case *btcutil.AddressPubKeyHash: weightEstimate.AddP2PKHOutput() + case *btcutil.AddressTaproot: + weightEstimate.AddP2TROutput() default: return 0, fmt.Errorf("unknown address type %T", destAddr) }