-
Notifications
You must be signed in to change notification settings - Fork 234
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
Update block hash computation #3941
Milestone
Comments
This should be the hash of the header. See https://github.com/ethereum/go-ethereum/blob/f55a10b64d511b27beb02ff4978a6ed66d604cd8/core/types/block.go#L114 for geth code. |
LHerskind
changed the title
Re-think what the block hash is and how it should be calculated.
Update block hash computation
Jan 28, 2024
benesjan
added a commit
that referenced
this issue
Jan 31, 2024
Fixes #3941 + renamed AppendOnlyTreeSnapshot.empty() as AppendOnlyTreeSnapshot.zero() to have it consistent with Noir **Note**: I did a large refactor of `MerkleTrees` class because with this change a lot of stuff there just didn't make sense anymore. Overall I think it's much cleaner now.
michaelelliot
pushed a commit
to Swoir/noir_rs
that referenced
this issue
Feb 28, 2024
Fixes AztecProtocol#3941 + renamed AppendOnlyTreeSnapshot.empty() as AppendOnlyTreeSnapshot.zero() to have it consistent with Noir **Note**: I did a large refactor of `MerkleTrees` class because with this change a lot of stuff there just didn't make sense anymore. Overall I think it's much cleaner now.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Look for TODO(#3941) in the codebase.
Note: When I was logging calls to
computeBlockHash
in 1 test the function was called with the same value 3 times. Make sure this value gets stored on the Header object as it is expensive to compute.The text was updated successfully, but these errors were encountered: