Skip to content

Commit 8d21042

Browse files
committed
sweeper: fix formatting and update error
1 parent ebd44ab commit 8d21042

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

sweep/sweeper.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,16 +192,22 @@ func (s *Sweeper) GetSweepFee(ctx context.Context,
192192
switch destAddr.(type) {
193193
case *btcutil.AddressWitnessScriptHash:
194194
weightEstimate.AddP2WSHOutput()
195+
195196
case *btcutil.AddressWitnessPubKeyHash:
196197
weightEstimate.AddP2WKHOutput()
198+
197199
case *btcutil.AddressScriptHash:
198200
weightEstimate.AddP2SHOutput()
201+
199202
case *btcutil.AddressPubKeyHash:
200203
weightEstimate.AddP2PKHOutput()
204+
201205
case *btcutil.AddressTaproot:
202206
weightEstimate.AddP2TROutput()
207+
203208
default:
204-
return 0, fmt.Errorf("unknown address type %T", destAddr)
209+
return 0, fmt.Errorf("estimate fee: unknown address type %T",
210+
destAddr)
205211
}
206212

207213
err = addInputEstimate(&weightEstimate)

0 commit comments

Comments
 (0)