Skip to content

Conversation

@t-bast
Copy link
Member

@t-bast t-bast commented Apr 22, 2025

This is a small refactoring to remove some duplication around skipping transactions whose output is below dust. We had a lot of copy-pasted code, which was a bit error-prone. I don't know if we should go further and try also factoring the part that creates/modifies the dummy signed transaction: it's less obvious how to do that while maintaining readability, and it may be obsolete once we've cleaned up Transactions.scala more in depth.

We have a lot of duplicated code where we skip creating 2nd-stage and
3rd-stage transactions when their output would be below dust. We now
introduce a helper function to factorize this shared behavior.
@t-bast t-bast force-pushed the refactor-tx-skip-dust branch from f458443 to 97e4b35 Compare April 24, 2025 13:25
@t-bast t-bast marked this pull request as ready for review April 24, 2025 13:25
@t-bast t-bast requested a review from sstone April 24, 2025 13:25
@t-bast t-bast merged commit a626281 into master Apr 24, 2025
1 check passed
@t-bast t-bast deleted the refactor-tx-skip-dust branch April 24, 2025 15:08
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