-
Notifications
You must be signed in to change notification settings - Fork 265
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(blocks_tree): add blocks tree information to blocks #1189
Conversation
78b4640
to
d00fd2a
Compare
✅ Deploy Preview for preeminent-bienenstitch-606ad0 canceled.
|
d00fd2a
to
98692dd
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.
Minor nit
@@ -14,10 +14,10 @@ library Constants { | |||
|
|||
// Constants used for decoding rollup blocks | |||
// TODO(962): Make this constant consistent across the codebase. | |||
uint256 internal constant COMMITMENTS_PER_KERNEL = 16; |
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.
uint256 private constant TREES_HEADER_SIZE = 0x140; | ||
|
||
// Where the metadata ends and the block data begins. | ||
uint256 private constant METADATA_OFFSET = 0x0300; |
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.
All the other things was named with some "sub-header", seems like it would make sense to use header here instead of metadata. Would also match better with some of the comments we have further down.
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, format it and then good to go.
Description
closes: #1161
Built ontop of #1168
Tiny pr to add the blocks tree info to the solidity contract, aim is to prevent this being part of a huge pr later
Checklist: