Skip to content

Remove sequence param from InputPair constructors#1405

Merged
arminsabouri merged 1 commit intopayjoin:masterfrom
spacebear21:remove-sequence-inputpair-constructors
Mar 11, 2026
Merged

Remove sequence param from InputPair constructors#1405
arminsabouri merged 1 commit intopayjoin:masterfrom
spacebear21:remove-sequence-inputpair-constructors

Conversation

@spacebear21
Copy link
Collaborator

Fixes #1404

The sequence parameter in InputPair::new_*() constructors was never used because contribute_inputs() always overrides the sequence to match the sender's first input, to prevent mixed sequence numbers in the payjoin proposal.

Authored by Claude

Pull Request Checklist

Please confirm the following before requesting review:

@coveralls
Copy link
Collaborator

coveralls commented Mar 11, 2026

Pull Request Test Coverage Report for Build 22933330218

Details

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

Totals Coverage Status
Change from base Build 22921496175: -0.05%
Covered Lines: 10657
Relevant Lines: 12718

💛 - Coveralls

The sequence parameter in InputPair::new_*() constructors was
never used because contribute_inputs() always overrides the
sequence to match the sender's first input, to prevent mixed
sequence numbers in the payjoin proposal.
@spacebear21 spacebear21 force-pushed the remove-sequence-inputpair-constructors branch from 4a39fb0 to 646b048 Compare March 11, 2026 02:09
Copy link
Contributor

@Mshehu5 Mshehu5 left a comment

Choose a reason for hiding this comment

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

cACK 646b048

Copy link
Collaborator

@arminsabouri arminsabouri left a comment

Choose a reason for hiding this comment

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

cACK 646b048

@arminsabouri arminsabouri merged commit ada272e into payjoin:master Mar 11, 2026
14 checks passed
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.

InputPair constructors take irrelevant sequence parameter

4 participants