-
Notifications
You must be signed in to change notification settings - Fork 47
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
Added transaction IDs into the Block
struct
#734
Conversation
# Conflicts: # objects/src/block/header.rs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! Overall, looks good but I did leave a couple of questions inline.
objects/src/testing/block.rs
Outdated
// TODO: Set tx_hash and proof_hash to the correct values once the kernel is available. | ||
let tx_hash = Digest::default(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure if this comment is still relevant for tx_hash
as it no longer has anything to do with the kernel.
It may be tricky to set the tx_hash
here correctly as we don't explicitly say which transactions where executed to get this state transition - but the comment should be different.
Also, cc @igamigo as this is probably relevant to the mock object refactoring you are working on.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thank you!
@@ -163,7 +163,7 @@ fn block_data_memory_assertions(process: &Process<MockHost>, inputs: &PreparedTr | |||
|
|||
assert_eq!( | |||
read_root_mem_value(process, BATCH_ROOT_PTR), | |||
inputs.block_header().batch_root().as_elements(), | |||
inputs.block_header().tx_hash().as_elements(), | |||
"The batch root should be stored at the BATCH_ROOT_PTR" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should BATCH_ROOT_PTR
and the error message refer to the transaction hash?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! @polydez - could you make a small PR to fix this (and check if we have any other similar references)?
This resolves #722