Skip to content

refactor: Rearrange fillPSBT arguments - #22214

Merged
fanquake merged 1 commit into
bitcoin:masterfrom
ryanofsky:pr/ipc-fill
Jun 12, 2021
Merged

fanquake merged 1 commit into
bitcoin:masterfrom
ryanofsky:pr/ipc-fill

Conversation

@ryanofsky

Copy link
Copy Markdown
Contributor

Move fillPSBT inout argument before output-only arguments. This is a nice thing to do to keep the interface style consistent. But motivation is to work around a current limitation of the libmultiprocess code generator (which figures out order of inout parameters by looking at input list, but more ideally would use the output list).


This PR is part of the process separation project. The commit was first part of larger PR #10102.

Move fillPSBT input-output argument before output-only arguments. This is a
temporary workaround which can go away with improvements to libmultiprocess
code generator. Currently code generator figures out order of input-output
parameters by looking at input list, but it would make more sense for it to
take order from output list, so input-only parameters still have to be first
but there is more flexibility for the other parameters.
@achow101

Copy link
Copy Markdown
Member

ACK f47e802

@theStack theStack left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code-review ACK f47e802

@fanquake
fanquake merged commit 9795e8e into bitcoin:master Jun 12, 2021
gwillen pushed a commit to ElementsProject/elements that referenced this pull request Jun 1, 2022
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Aug 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

Development

Successfully merging this pull request may close these issues.

5 participants