sweep: fix sweep fee estimation for p2tr outputs

pull/531/head
Andras Banki-Horvath 2 years ago
parent 9c30101500
commit ebd44ab4c2
No known key found for this signature in database
GPG Key ID: 80E5375C094198D8

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

Loading…
Cancel
Save