Skip to content

fix: make sure tx_build does not change the order of add_utxos when u… #252

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

eauxxs
Copy link

@eauxxs eauxxs commented Jun 2, 2025

fixes #244

@nymius
Copy link
Contributor

nymius commented Jun 9, 2025

Thanks for working on this! I'd prefer to not add the indexmap dependency just to cover this case. I've proposed an alternative solution in #261

@eauxxs
Copy link
Author

eauxxs commented Jun 10, 2025

@nymius Indeed. Adding a dependency for a small case is not a good idea. How about this idea? I still think it is better to replace the code in place as much as possible, rather than invading the code to do index calculations.

@nymius
Copy link
Contributor

nymius commented Jun 10, 2025

Thanks for this! I still think is a workaround for the dependency issue. You are moving the problem of maintaining compatibility with the dependency to maintaining the OrderUtxos structure ourselves. Is a solution, but I still think we can do better.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 15555027734

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 39 of 39 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.06%) to 85.61%

Totals Coverage Status
Change from base Build 15476130196: 0.06%
Covered Lines: 7413
Relevant Lines: 8659

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

TxOrdering::Untouched no longer ensures the order of tx input
3 participants