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

Simplify input_pairs signature #1004

Closed
wants to merge 1 commit into from

Conversation

DanGould
Copy link
Contributor

@DanGould DanGould commented Feb 4, 2024

just a function signature simplification

@benthecarman
Copy link
Collaborator

compile errors

@DanGould
Copy link
Contributor Author

DanGould commented Feb 5, 2024

noob move on my part. please ignore

@DanGould DanGould closed this Feb 5, 2024
@DanGould DanGould deleted the refactor-pj branch February 5, 2024 15:34
@benthecarman
Copy link
Collaborator

I think it would have worked, just needed to change to iter_funding_utxos

I assume this is a slight performance increase we are no longer using Box so it doesn't need to be allocated to the heap

@DanGould
Copy link
Contributor Author

DanGould commented Feb 5, 2024

It seems like more of a PITA than I thought because iter_funding_utxos is fallable. In order to check if it fails I believe we'd need to call collect() before we zip to check for failed results which allocate anyhow. And the performance bump is only when we actually process a payjoin so I think I just got excited about an api when discussing here rust-bitcoin/rust-bitcoin#630 (comment)

I really don't think it's worth the mental cycles. Oops!

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.

None yet

2 participants