Skip to content

Commit d78768f

Browse files
committed
feat(selector): add SelectorError::MissingChangeSatisfactionWeight
1 parent 88ee2b6 commit d78768f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/selector.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,13 +279,19 @@ pub enum SelectorError {
279279
Miniscript(miniscript::Error),
280280
/// meeting the target is not possible
281281
CannotMeetTarget(CannotMeetTarget),
282+
/// missing weight to satisfy change output
283+
MissingChangeSatisfactionWeight,
282284
}
283285

284286
impl fmt::Display for SelectorError {
285287
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
286288
match self {
287289
Self::Miniscript(err) => write!(f, "{err}"),
288290
Self::CannotMeetTarget(err) => write!(f, "{err}"),
291+
Self::MissingChangeSatisfactionWeight => write!(
292+
f,
293+
"Cannot determinate change policy without satisfaction weight"
294+
),
289295
}
290296
}
291297
}

0 commit comments

Comments
 (0)