sweep: fix sweep fee estimation for p2tr outputs

This commit is contained in:
Andras Banki-Horvath 2022-10-06 23:27:03 +02:00
parent 9c30101500
commit ebd44ab4c2
No known key found for this signature in database
GPG key ID: 80E5375C094198D8

View file

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