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

Merge bitcoin#14636: Avoid using numeric_limits for sequence numbers and lock times #4296

Merged
merged 1 commit into from
Jul 28, 2021

Conversation

5tefan
Copy link

@5tefan 5tefan commented Jul 28, 2021

Merges bitcoin#14636: Avoid using numeric_limits for sequence
numbers and lock times.

5352030 Avoid using numeric_limits for sequence numbers and lock
times (Russell Yanofsky)
bafb921 Remove duplicated code (Hennadii Stepanov)
e4dc39b Replace platform dependent type with proper const
(Hennadii Stepanov)

Pull request description:

Switches to named constants, because numeric_limits calls can be
harder to read and less portable.

Change was suggested by jamesob in
bitcoin#10973 (comment)

There are no changes in behavior except on some platforms we don't
support (ILP64, IP16L32, I16LP32), where SignalsOptInRBF and
MutateTxAddInput functions would now work correctly.

@PastaPastaPasta PastaPastaPasta changed the title Backports 0.18: #14636 Avoid using numeric_limits for sequence numbers and lock times Merge bitcoin#14636: Avoid using numeric_limits for sequence numbers and lock times Jul 28, 2021
@PastaPastaPasta PastaPastaPasta changed the base branch from master to develop July 28, 2021 01:38
@PastaPastaPasta
Copy link
Member

The diff looks good. However, please base all work off of the develop branch. I have changed the 'base branch' in github, however you PR now has conflicts that need to be resolved by rebasing on develop. Let me know if you need help on doing that.

Also I changed the title to be more inline with expected.

Overall looks good!

@5tefan 5tefan marked this pull request as draft July 28, 2021 03:58
Merges bitcoin#14636: Avoid using numeric_limits for sequence
numbers and lock times.

5352030 Avoid using numeric_limits for sequence numbers and lock
            times (Russell Yanofsky)
bafb921 Remove duplicated code (Hennadii Stepanov)
e4dc39b Replace platform dependent type with proper const
            (Hennadii Stepanov)

Pull request description:

  Switches to named constants, because numeric_limits calls can be
harder to read and less portable.

  Change was suggested by jamesob in
bitcoin#10973 (comment)

  There are no changes in behavior except on some platforms we don't
support (ILP64, IP16L32, I16LP32), where `SignalsOptInRBF` and
`MutateTxAddInput` functions would now work correctly.
@5tefan 5tefan marked this pull request as ready for review July 28, 2021 04:03
@5tefan
Copy link
Author

5tefan commented Jul 28, 2021

Ahh, I see. Thanks! Rebase done and conflicts resolved.

@UdjinM6 UdjinM6 added this to the 18 milestone Jul 28, 2021
Copy link

@UdjinM6 UdjinM6 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
Member

@PastaPastaPasta PastaPastaPasta left a comment

Choose a reason for hiding this comment

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

utACK for squash merge

@PastaPastaPasta PastaPastaPasta merged commit 59cfd52 into dashpay:develop Jul 28, 2021
@5tefan 5tefan deleted the backports_018_e8d490f27 branch August 12, 2021 06:10
gades pushed a commit to cosanta/cosanta-core that referenced this pull request Nov 9, 2023
…and lock times (dashpay#4296)

Merges bitcoin#14636: Avoid using numeric_limits for sequence
numbers and lock times.

5352030 Avoid using numeric_limits for sequence numbers and lock
            times (Russell Yanofsky)
bafb921 Remove duplicated code (Hennadii Stepanov)
e4dc39b Replace platform dependent type with proper const
            (Hennadii Stepanov)

Pull request description:

  Switches to named constants, because numeric_limits calls can be
harder to read and less portable.

  Change was suggested by jamesob in
bitcoin#10973 (comment)

  There are no changes in behavior except on some platforms we don't
support (ILP64, IP16L32, I16LP32), where `SignalsOptInRBF` and
`MutateTxAddInput` functions would now work correctly.
gades pushed a commit to piratecash/pirate that referenced this pull request Dec 9, 2023
…and lock times (dashpay#4296)

Merges bitcoin#14636: Avoid using numeric_limits for sequence
numbers and lock times.

5352030 Avoid using numeric_limits for sequence numbers and lock
            times (Russell Yanofsky)
bafb921 Remove duplicated code (Hennadii Stepanov)
e4dc39b Replace platform dependent type with proper const
            (Hennadii Stepanov)

Pull request description:

  Switches to named constants, because numeric_limits calls can be
harder to read and less portable.

  Change was suggested by jamesob in
bitcoin#10973 (comment)

  There are no changes in behavior except on some platforms we don't
support (ILP64, IP16L32, I16LP32), where `SignalsOptInRBF` and
`MutateTxAddInput` functions would now work correctly.
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.

3 participants