Skip to content

Remove MAX_SEQUENCE constant#1171

Merged
apoelstra merged 1 commit intorust-bitcoin:masterfrom
tcharding:08-05-rm-sequence-const
Aug 5, 2022
Merged

Remove MAX_SEQUENCE constant#1171
apoelstra merged 1 commit intorust-bitcoin:masterfrom
tcharding:08-05-rm-sequence-const

Conversation

@tcharding
Copy link
Copy Markdown
Member

@tcharding tcharding commented Aug 5, 2022

This is follow up work to the recent addition of the Sequence type. We
do not need to keep a public integer const for MAX_SEQUENCE because we
offer the Sequenc::MAX associated type.

Use the all-bits-set u64 directly in the associated type Sequence::MAX.

cc nlanson

This is follow up work to the recent addition of the `Sequence` type. We
do not need to keep a public integer const for `MAX_SEQUENCE` because we
offer the `Sequenc::MAX` associated type.

Use the all-bits-set u64 directly in the associated type `Sequence::MAX`.
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.

ACK b6c5fc3

Would be great if it made it into 0.29.

@Kixunil Kixunil added API break This PR requires a version bump for the next release P-high High priority trivial Obvious, easy and quick to review (few lines or doc-only...) one ack PRs that have one ACK, so one more can progress them labels Aug 5, 2022
@Kixunil Kixunil mentioned this pull request Aug 5, 2022
3 tasks
Copy link
Copy Markdown
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 b6c5fc3

@apoelstra apoelstra merged commit 995c83c into rust-bitcoin:master Aug 5, 2022
@Kixunil Kixunil added this to the 0.29.0 milestone Aug 5, 2022
@tcharding tcharding deleted the 08-05-rm-sequence-const branch August 8, 2022 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API break This PR requires a version bump for the next release one ack PRs that have one ACK, so one more can progress them P-high High priority trivial Obvious, easy and quick to review (few lines or doc-only...)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants