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

Transaction validity and to-plain conversion for PoW transactions #3187

Open
wants to merge 14 commits into
base: albatross
Choose a base branch
from

Conversation

sisou
Copy link
Member

@sisou sisou commented Dec 10, 2024

Ensure PoW transactions can be properly converted to their plain representation, which is primarily done during address transaction history fetching in the web-client. Before this change, PoW transactions could not be returned and the process panicked, due to different serializations of contract creation data, HTLC proofs and signature proofs.

I have tried to document all changes and differences in code comments, let me know if you require more info, here or in the code.

Pull request checklist

  • All tests pass. The project builds and runs.
  • I have resolved any merge conflicts.
  • I have resolved all clippy and rustfmt warnings.

@sisou sisou force-pushed the nibhar/tx-history branch from fffc91b to 82bd171 Compare December 10, 2024 20:51
@sisou sisou force-pushed the nibhar/tx-history branch from 602b7f3 to 0e54f87 Compare December 12, 2024 13:25
@sisou sisou self-assigned this Dec 12, 2024
@sisou sisou changed the title WIP: Transaction validity and to-plain conversion for PoW transactions Transaction validity and to-plain conversion for PoW transactions Dec 12, 2024
@sisou
Copy link
Member Author

sisou commented Dec 12, 2024

Ready for review.

@@ -74,6 +74,7 @@ build-data = "0.2"
serde_json = "1.0"

nimiq-test-log = { workspace = true }
nimiq-web-client = { workspace = true, default-features = false, features = ["primitives"] }
Copy link
Member

Choose a reason for hiding this comment

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

The  default-features = false is inherited from the workspace

Suggested change
nimiq-web-client = { workspace = true, default-features = false, features = ["primitives"] }
nimiq-web-client = { workspace = true, features = ["primitives"] }

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