Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use bitcoin::Network #83

Merged
merged 1 commit into from
Jun 28, 2023

Conversation

tcharding
Copy link
Contributor

@tcharding tcharding commented Jun 20, 2023

The HWIChain type is only required so we can get around the orphan rule and implement IntoPy. We can use a wrapper type (wrapping bitcoin::Network) to achive this and the use plain old Network everywhere else. This simplifies the code and makes it more clear to the casual reader who is familiar already with rust-bitcoin.

Fix: #80

@tcharding tcharding changed the title Use bitcoin::Network Use bitcoin::Network Jun 20, 2023
@tcharding
Copy link
Contributor Author

tcharding commented Jun 20, 2023

hmmm, not sure why MSRV job is failing - this PR does not touch anything that effects the dependencies that make MSRV build? Any suggestions please?

@tcharding
Copy link
Contributor Author

If #84 is acceptable it could go in before this one and that would fix the CI fails.

The `HWIChain` type is only required so we can get around the orphan
rule and implement `IntoPy`. We can use a wrapper type (wrapping
`bitcoin::Network`) to achieve this and the use plain old `Network`
everywhere else. This simplifies the code and makes it more clear to
the casual reader who is familiar already with `rust-bitcoin`.
Copy link
Member

@danielabrozzoni danielabrozzoni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 62c2929 - looks way cleaner now.

@danielabrozzoni danielabrozzoni merged commit 9005479 into bitcoindevkit:master Jun 28, 2023
7 checks passed
@tcharding tcharding deleted the 06-20-hwi-chain branch July 12, 2023 04:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HWIChain could be a wrapper type
2 participants