10000 Remove unused consensus encoding error variants by Kixunil · Pull Request #1252 · rust-bitcoin/rust-bitcoin · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Remove unused consensus encoding error variants #1252

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

Merged

Conversation

Kixunil
Copy link
Collaborator
@Kixunil Kixunil commented Sep 8, 2022

The error variants UnexpectedNetworkMagic and UnknownNetworkMagic were not only duplicated but also completely unused. This removes both of them.

The error variants `UnexpectedNetworkMagic` and `UnknownNetworkMagic`
were not only duplicated but also completely unused. This removes both
of them.
@Kixunil Kixunil added API break This PR requires a version bump for the next release 1.0 Issues and PRs required or helping to stabilize the API error handling Issues and PRs related to error handling, mainly error refactoring epic labels Sep 8, 2022
Copy link
Member
@tcharding tcharding left a comment

Choose a reason for hiding this comment

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

ACK 57c4283

Copy link
Member
@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

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

ACK 57c4283

@apoelstra apoelstra merged commit 3ebf3d5 into rust-bitcoin:master Sep 9, 2022
@Kixunil Kixunil deleted the remove-unused-error-variants branch September 9, 2022 08:32
@tcharding tcharding added this to the 0.30.0 milestone Sep 15, 2022
apoelstra added a commit that referenced this pull request Dec 5, 2022
1a2cf26 Implement consensus encoding adapter for serde (Martin Habovstiak)
a6ecc58 Add `put_bytes_min` and `space_remaining` methods (Martin Habovstiak)

Pull request description:

  In some protocols it is preferred to serialize consensus-encodable types
  using consensus encoding. E.g. serialize `Transaction` as hex-encoded
  string in Json in Bitcoin Core RPC protocol. This change provides
  adapter to make this easier.

  The adapter allows providing custom byte-to-string encoder for more
  exotic cases and provides a hex implementation which should be useful in
  majority of the cases.

  Should help with #765

  Based on #1252

  Required by #1234

ACKs for top commit:
  tcharding:
    ACK 1a2cf26
  apoelstra:
    ACK 1a2cf26

Tree-SHA512: 96e10cf6ea0e7dfecfb58ee97453e0e7c8a2cfbb8af1e73a23c3afb67b985b394976361ac237528991fbb7344cc9f24644869199008245a91838309aff34bb97
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.0 Issues and PRs required or helping to stabilize the API API break This PR requires a version bump for the next release error handling Issues and PRs related to error handling, mainly error refactoring epic
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0