Skip to content

Commit 8f07128

Browse files
committed
WIP: Add bdk_core coin select
1 parent f92e979 commit 8f07128

File tree

4 files changed

+927
-1186
lines changed

4 files changed

+927
-1186
lines changed

src/bdk_core/coin_select/bnb.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ impl<'c, 'f, S: Ord + Copy + Display> Iterator for BnbIter<'c, 'f, S> {
173173
}
174174
}
175175

176+
#[derive(Debug, Clone, Copy)]
176177
/// Determines how we should limit rounds of branch and bound.
177178
pub enum BnbLimit {
178179
/// Limit by round count.

src/error.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,3 +240,9 @@ impl From<crate::blockchain::esplora::EsploraError> for Error {
240240
Error::Esplora(Box::new(other))
241241
}
242242
}
243+
244+
impl From<crate::bdk_core::SelectionFailure> for Error {
245+
fn from(f: crate::bdk_core::SelectionFailure) -> Self {
246+
Error::Generic(format!("bdk_core: {}", f))
247+
}
248+
}

0 commit comments

Comments
 (0)