Enum bdk::wallet::coin_selection::Error
source · pub enum Error {
InsufficientFunds {
needed: u64,
available: u64,
},
BnBNoExactMatch,
BnBTotalTriesExceeded,
}
Expand description
Errors that can be thrown by the coin_selection
module
Variants§
InsufficientFunds
Wallet’s UTXO set is not enough to cover recipient’s requested plus fee
BnBNoExactMatch
Branch and bound coin selection tries to avoid needing a change by finding the right inputs for the desired outputs plus fee, if there is not such combination this error is thrown
BnBTotalTriesExceeded
Branch and bound coin selection possible attempts with sufficiently big UTXO set could grow exponentially, thus a limit is set, and when hit, this error is thrown
Trait Implementations§
source§impl Error for Error
impl Error for Error
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()