Merge commit 'refs/pull/250/head' of github.com:bitcoindevkit/bdk
This commit is contained in:
commit
407f14add9
@ -165,11 +165,13 @@ pub enum SatisfiableItem {
|
|||||||
impl SatisfiableItem {
|
impl SatisfiableItem {
|
||||||
/// Returns whether the [`SatisfiableItem`] is a leaf item
|
/// Returns whether the [`SatisfiableItem`] is a leaf item
|
||||||
pub fn is_leaf(&self) -> bool {
|
pub fn is_leaf(&self) -> bool {
|
||||||
!matches!(self,
|
!matches!(
|
||||||
SatisfiableItem::Thresh {
|
self,
|
||||||
items: _,
|
SatisfiableItem::Thresh {
|
||||||
threshold: _,
|
items: _,
|
||||||
})
|
threshold: _,
|
||||||
|
}
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns a unique id for the [`SatisfiableItem`]
|
/// Returns a unique id for the [`SatisfiableItem`]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user