Merge commit 'refs/pull/250/head' of github.com:bitcoindevkit/bdk

This commit is contained in:
Alekos Filini 2020-12-23 17:48:59 +01:00
commit 407f14add9
No known key found for this signature in database
GPG Key ID: 5E8AFC3034FDFA4F

View File

@ -165,11 +165,13 @@ pub enum SatisfiableItem {
impl SatisfiableItem {
/// Returns whether the [`SatisfiableItem`] is a leaf item
pub fn is_leaf(&self) -> bool {
!matches!(self,
SatisfiableItem::Thresh {
items: _,
threshold: _,
})
!matches!(
self,
SatisfiableItem::Thresh {
items: _,
threshold: _,
}
)
}
/// Returns a unique id for the [`SatisfiableItem`]