Skip to content

Use consts for address prefix values#632

Merged
dr-orlovsky merged 1 commit intorust-bitcoin:masterfrom
tcharding:prefixes
Aug 9, 2021
Merged

Use consts for address prefix values#632
dr-orlovsky merged 1 commit intorust-bitcoin:masterfrom
tcharding:prefixes

Conversation

@tcharding
Copy link
Copy Markdown
Member

Instead of using magic numbers we can define constants for the address
prefix bytes. This makes it easier for future readers of the code to see
what these values are if they don't know them and/or see that they are
correct if they do know them.

Instead of using magic numbers we can define constants for the address
prefix bytes. This makes it easier for future readers of the code to see
what these values are if they don't know them and/or see that they are
correct if they do know them.
Copy link
Copy Markdown
Member

@sanket1729 sanket1729 left a comment

Choose a reason for hiding this comment

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

utACK adc1543

Copy link
Copy Markdown
Collaborator

@Kixunil Kixunil left a comment

Choose a reason for hiding this comment

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

utACK

Copy link
Copy Markdown
Collaborator

@dr-orlovsky dr-orlovsky left a comment

Choose a reason for hiding this comment

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

utACK

@dr-orlovsky
Copy link
Copy Markdown
Collaborator

Trivial PR, single commit, two ACKs - merging now

@dr-orlovsky dr-orlovsky merged commit 4e3c2c3 into rust-bitcoin:master Aug 9, 2021
@tcharding tcharding deleted the prefixes branch August 10, 2021 23:25
@dr-orlovsky dr-orlovsky added this to the 0.28.0 milestone Sep 25, 2021
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.

4 participants