Skip to content

Commit dc866e4

Browse files
Error instead of panic
1 parent b487da3 commit dc866e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/coordinator/redemptions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ func EstimateRedemptionFee(
356356
case bitcoin.P2WSHScript:
357357
sizeEstimator.AddScriptHashOutputs(1, true)
358358
default:
359-
panic("non-standard redeemer output script type")
359+
return 0, fmt.Errorf("non-standard redeemer output script type")
360360
}
361361
}
362362

0 commit comments

Comments
 (0)