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: Optimize MMR hash for HistoricTransaction #2630

Merged
merged 2 commits into from
Jun 17, 2024

Conversation

jsdanielh
Copy link
Member

Optimize MMR hash for HistoricTransaction by removing unnecessary vector allocation and writing all the data directly to the hasher.

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.

@jsdanielh jsdanielh requested a review from hrxi June 17, 2024 12:35
Copy link
Contributor

@hrxi hrxi left a comment

Choose a reason for hiding this comment

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

LGTM.

jsdanielh and others added 2 commits June 17, 2024 16:45
Optimize MMR hash for `HistoricTransaction` by removing unnecessary
vector allocation and writing all the data directly to the hasher.

Co-authored-by: hrxi <[email protected]>
It was missed because the serialization wasn't derived.
@jsdanielh jsdanielh force-pushed the jsdanielh/minor_fixes branch from 071dc44 to 06f2c21 Compare June 17, 2024 13:46
@hrxi hrxi merged commit 06f2c21 into albatross Jun 17, 2024
6 checks passed
@hrxi hrxi deleted the jsdanielh/minor_fixes branch June 17, 2024 15:33
@jsdanielh jsdanielh added this to the Nimiq PoS Mainnet milestone Jun 18, 2024
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