Skip to content

Commit

Permalink
refactor(wallet): put get_address and get_internal_address into infal…
Browse files Browse the repository at this point in the history
…lible impl block
  • Loading branch information
notmandatory committed Nov 16, 2023
1 parent 1ec4716 commit 6f570ed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/bdk/src/wallet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,12 @@ impl Wallet {
NewError::Persist(_) => unreachable!("no persistence so it can't fail"),
})
}
}

impl<D> Wallet<D>
where
D: PersistBackend<ChangeSet, WriteError = core::convert::Infallible>,
{
/// Infallibly return a derived address using the external descriptor, see [`AddressIndex`] for
/// available address index selection strategies. If none of the keys in the descriptor are derivable
/// (i.e. does not end with /*) then the same address will always be returned for any [`AddressIndex`].
Expand Down

0 comments on commit 6f570ed

Please sign in to comment.