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

feat(blocks_tree): add blocks tree information to blocks #1189

Merged
merged 8 commits into from
Jul 27, 2023

Conversation

Maddiaa0
Copy link
Member

@Maddiaa0 Maddiaa0 commented Jul 25, 2023

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:

  • I have reviewed my diff in github, line by line.
  • Every change is related to the PR description.
  • I have linked this pull request to the issue(s) that it resolves.
  • There are no unexpected formatting changes, superfluous debug logs, or commented-out code.
  • The branch has been merged or rebased against the head of its merge target.
  • I'm happy for the PR to be merged at the reviewer's next convenience.

Base automatically changed from md/blocks-tree-interfaces to master July 26, 2023 10:14
@Maddiaa0 Maddiaa0 force-pushed the md/blocks-tree-smart-contract branch from 78b4640 to d00fd2a Compare July 26, 2023 10:31
@netlify
Copy link

netlify bot commented Jul 26, 2023

Deploy Preview for preeminent-bienenstitch-606ad0 canceled.

Name Link
🔨 Latest commit 36e4e8f
🔍 Latest deploy log https://app.netlify.com/sites/preeminent-bienenstitch-606ad0/deploys/64c250751aeb330007ab20da

@Maddiaa0 Maddiaa0 force-pushed the md/blocks-tree-smart-contract branch from d00fd2a to 98692dd Compare July 26, 2023 17:15
@Maddiaa0 Maddiaa0 marked this pull request as ready for review July 26, 2023 18:12
Copy link
Contributor

@LHerskind LHerskind left a 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;
Copy link
Contributor

Choose a reason for hiding this comment

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

Adventure Time GIF

uint256 private constant TREES_HEADER_SIZE = 0x140;

// Where the metadata ends and the block data begins.
uint256 private constant METADATA_OFFSET = 0x0300;
Copy link
Contributor

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.

Copy link
Contributor

@LHerskind LHerskind left a 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.

@Maddiaa0 Maddiaa0 enabled auto-merge (squash) July 27, 2023 11:09
@Maddiaa0 Maddiaa0 merged commit 4e34e6f into master Jul 27, 2023
@Maddiaa0 Maddiaa0 deleted the md/blocks-tree-smart-contract branch July 27, 2023 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

feat(blocks_tree): Add blocks tree checking to smart contract
2 participants