bdk
bdk copied to clipboard
Remove duplicated InsufficientFunds error member
closes #1440
Description
- Replace
CreateTxError::InsufficientFunds
use bycoin_selection::Error::InsufficientFunds
- Remove
InsufficientFunds
member fromCreateTxError
enum - Rename
coin_selection::Error
tocoin_selection::CoinSelectionError
Notes to the reviewers
- We could also keep both members but rename one of them to avoid confusion
Checklists
All Submissions:
- [X] I've signed all my commits
- [X] I followed the contribution guidelines
- [X] I ran
cargo fmt
andcargo clippy
before committing
I tend to favor the name Error
and qualifying it with its containing module, i.e. coin_selection::Error
.
Please also setup commit signing, see: https://docs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verification
Maybe this belongs here better, basically, can this be disabled in anything but Network::Bitcoin?
https://github.com/bitcoindevkit/bdk/issues/1440#issuecomment-2108275322
Maybe this belongs here better, basically, can this be disabled in anything but Network::Bitcoin?
I personally don't think it's a good idea to "error-gate" based on the bitcoin::Network type, I would expect all behaviors that happen on mainnet (production per se) to happen on others, and even some nasty behaviors we may catch while testing on testnet/signet being prevented to land on mainnet code 😅.
That's a good point, @oleonardolima maybe the juice is not worth the squeeze on making this change.
Please rebase again and fixup commits into one commit then this should be ready to merge.