-
Notifications
You must be signed in to change notification settings - Fork 50
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
feat: calculate block hash #248
Conversation
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.
Reviewed 3 of 3 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @yoavGrs)
src/block_hash/block_hash_calculator.rs
line 46 at r1 (raw file):
/// data_gas_price_wei, data_gas_price_fri, starknet_version, 0, parent_block_hash /// ). pub fn calculate_block_hash(block_hash_input: &BlockHashInput<'_, '_, '_, '_>) -> BlockHash {
Why not receive Block?
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.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @ShahakShama)
src/block_hash/block_hash_calculator.rs
line 46 at r1 (raw file):
Previously, ShahakShama wrote…
Why not receive Block?
Because Block contains block_hash
and optional commitments.
Should I define a new struct, BlockWithoutHash?
f1d217b
to
4e88432
Compare
1030106
to
9711a6b
Compare
4e88432
to
7760bb9
Compare
09320c0
to
4dedc9c
Compare
7760bb9
to
4393671
Compare
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.
Reviewed 7 of 7 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @ShahakShama)
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.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @yoavGrs)
src/block_hash/block_hash_calculator.rs
line 46 at r1 (raw file):
Previously, yoavGrs wrote…
Because Block contains
block_hash
and optional commitments.
Should I define a new struct, BlockWithoutHash?
Yes, I'd rename the current Block to BlockWithCommitments. You can put a TODO for now
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.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @ShahakShama)
src/block_hash/block_hash_calculator.rs
line 46 at r1 (raw file):
Previously, ShahakShama wrote…
Yes, I'd rename the current Block to BlockWithCommitments. You can put a TODO for now
The structure of Block
should change and contain: BlockHeader
(currently BlockHeaderWithoutHash), BlockBody
, BlockHeaderCommitments
and BlockHash
.
It's a breaking change that is bigger than a renaming TODO.
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.
Reviewed all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @yoavGrs)
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.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @yoavGrs)
4b86174
4393671
to
4b86174
Compare
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.
Reviewed 1 of 1 files at r3, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @yoavGrs)
This change is