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

consensus: refactor build_header_template #10442

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

tcoratger
Copy link
Contributor

No description provided.

Comment on lines 290 to 292
state_root: Default::default(),
transactions_root: proofs::calculate_transaction_root(transactions),
receipts_root: Default::default(),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mattsse Here as default values for state_root and receipts_root shouldn't we set EMPTY_ROOT_HASH as it is the case for the Default implementation of Header?

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

yeah those should indeed use the regular defaults, nice catch

@mattsse mattsse enabled auto-merge August 22, 2024 06:59
@mattsse mattsse added the C-bug An unexpected or incorrect behavior label Aug 22, 2024
@mattsse mattsse added this pull request to the merge queue Aug 22, 2024
Merged via the queue into paradigmxyz:main with commit 362c238 Aug 22, 2024
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug An unexpected or incorrect behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants