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

wire: add proper types for flag field and improve docs #1632

Merged
merged 1 commit into from
Sep 14, 2020

Conversation

onyb
Copy link
Collaborator

@onyb onyb commented Sep 13, 2020

Summary of changes:

  • Add a new const TxFlagMarker to indicate the flag prefix byte.

  • Add a new TxFlag type to enumerate the flags supported by the
    tx parser.

    This allows us to avoid hardcoded magics, and will make it easier
    to support new flags in future.

  • Improve code comments.

Closes #1598.

@coveralls
Copy link

coveralls commented Sep 13, 2020

Pull Request Test Coverage Report for Build 252516634

  • 10 of 10 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.002%) to 53.701%

Totals Coverage Status
Change from base Build 245421206: -0.002%
Covered Lines: 20634
Relevant Lines: 38424

💛 - Coveralls

Summary of changes:

- Add a new const TxFlagMarker to indicate the flag prefix byte.
- Add a new TxFlag type to enumerate the flags supported by the
  tx parser.

  This allows us to avoid hardcoded magics, and will make it easier
  to support new flags in future.
- Improve code comments.

Closes btcsuite#1598.
Copy link
Member

@jcvernaleo jcvernaleo left a comment

Choose a reason for hiding this comment

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

OK

@jcvernaleo jcvernaleo merged commit ff59bbc into btcsuite:master Sep 14, 2020
@onyb onyb deleted the flag-types branch September 14, 2020 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants