mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
sweep: fix sweep fee estimation for p2tr outputs
This commit is contained in:
parent
9c30101500
commit
ebd44ab4c2
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue