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

Add utxo to string from string #79

Merged

Conversation

yancyribbens
Copy link
Collaborator

@yancyribbens yancyribbens commented Mar 14, 2025

  • Implements FromStr for Utxo.
  • Replace helper methods with FromStr trait
  • Refactor Utxo using the builder pattern.
  • Add constructors to UtxoPool

@yancyribbens yancyribbens force-pushed the add-utxo-to-string-from-string branch 4 times, most recently from fb363f9 to 382c6ba Compare March 15, 2025 00:19
@yancyribbens yancyribbens force-pushed the add-utxo-to-string-from-string branch 10 times, most recently from 5f21b90 to 30c7d70 Compare March 15, 2025 22:10
@yancyribbens yancyribbens force-pushed the add-utxo-to-string-from-string branch 4 times, most recently from 9a800b6 to bd3fccb Compare March 16, 2025 13:57
Else branch isn't needed.  If None is passed for expected_inputs and the
results are Some, a panic will occur when expected_inputs is unwrapped.
Make use of FromStr trait in tests and remove redundant helper
functions.  In the process of refactoring, compare two vectors instead
of casting the results to a String and then comparing the Strings.
Reduce code reuse by adding constructors
@yancyribbens yancyribbens force-pushed the add-utxo-to-string-from-string branch from bd3fccb to 32c09e2 Compare March 16, 2025 14:01
@yancyribbens
Copy link
Collaborator Author

No changes to core algorithms or tests, just cleanup to the test-suit to make it nicer to read.

@yancyribbens yancyribbens merged commit 3ceda54 into p2pderivatives:master Mar 16, 2025
3 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.

1 participant