feat!: use NetworkKind#250
Conversation
Pull Request Test Coverage Report for Build 18730536494Details
💛 - Coveralls |
22d27a6 to
e6e6266
Compare
e6e6266 to
ecefb4c
Compare
ecefb4c to
3e25aef
Compare
|
You certainly did take some liberties with the code, definitely an improvement overall. In the future it would be nice to make a separate patch for things like documentation and code comments. |
03fb39c to
3ee3ae2
Compare
|
ACK 3ee3ae2 |
|
Will need a rebase. Sorry for the inconvenience. |
3ee3ae2 to
34fe4d6
Compare
|
I have just a quick feedback that might help you in further PRs @luisschwab. Last week I saw your message on Discord looking for review on this, and I decided to take a look. In the end the diffs are really big because it's so much docs changes all mixed up with code changes, and I didn't have enough time before my day was over. My advice for further work would be to separate docs and code changes in different commits (I don't actually mind that they are in the same PR, and I know that sometimes we're in a given part of the codebase and it makes sense to fix docs while we're there and thinking about it). I actually like these little ongoing fixes/polish of the docs. But when the diff is big, I review one commit at a time, and that makes it much easier if the two ideas are separate. |
|
Yeah, Mammal mentioned that as well. This PR is pretty old, but I'll keep that in mind for the future. |
24da1b6 to
554bb75
Compare
..to require the NetworkKind when generating the key. This fixes an issue where keys generated for mainnet were incorrectly marked valid for any network. test(keys): Add `test_xpriv_generate_options` fixes bitcoindevkit#22
Co-authored-by: cooparo <github.ambitious226@slmails.com>
554bb75 to
881df71
Compare
|
ACK 881df71 |
Description
Closes #22.
Closes #94.
This PR replaces
bitcoin::Networkforbitcoin::NetworkKindwhere it applies.I also took the liberty of fixing up and adding comments on the files I touched.
Changelog
wallet_name_from_descriptor()takesNetworkKindinstead ofNetwork.DescriptorToExtracttakesNetworkKindinstead ofNetwork.impl IntoWalletDescriptor for <T>takesNetworkinsteadNetworkKind.DescriptorTemplate::build()takesNetworkKindinstead ofNetwork.ExtendedKey::into_xprv()takesNetworkKindinstead ofNetwork.ExtendedKey::into_xpub()takesNetworkKindinstead ofNetwork.DerivableKey::into_extended_key()examples updated to useNetworkKindinstead ofNetwork.any_network()renamed toany_network_kind().mainnet_network()renamed tomainnet_network_kind().test_networks()renamed totest_network_kind().merge_networks()renamed tointersect_network_kinds().ValidNetworkstype alias renamed toValidNetworkKinds.GeneratedKey::new()takesValidNetworkKindsinstead ofValidNetworks.DescriptorKey::from_public()takesValidNetworkKindsinstead ofValidNetworks.DescriptorKey::from_secret()takesValidNetworkKindsinstead ofValidNetworks.KeyError::InvalidNetworkrenamed toKeyError::InvalidNetworkKind.DescriptorKey::override_valid_networks()renamed tooverride_valid_network_kinds().NetworkKindinstead ofNetwork.NetworkKind::Testinstead ofNetwork::{Regtest, Signet, Testnet, Testnet4}.NetworkKindinstead ofNetwork.Checklists
All Submissions:
cargo +nightly fmtandcargo clippybefore committingNew Features:
Bugfixes: