Skip to content

feat: add sl chain id to batch output hash#2048

Closed
perekopskiy wants to merge 1 commit intodraft-v31-with-zksync-osfrom
add-sl-chain-id-to-batch-output-hash
Closed

feat: add sl chain id to batch output hash#2048
perekopskiy wants to merge 1 commit intodraft-v31-with-zksync-osfrom
add-sl-chain-id-to-batch-output-hash

Conversation

@perekopskiy
Copy link
Contributor

What ❔

Adds sl chain id to batch output hash to match zksync-os batch output hash calculation

Why ❔

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.

_expectedSystemContractUpgradeTxHash,
_newBatch.dependencyRootsRollingHash
_newBatch.dependencyRootsRollingHash,
block.chainid
Copy link
Contributor

Choose a reason for hiding this comment

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

Not very important, but do you think it makes sense to pass it separately in the batch commit info, and make sure that it equals block.chainId? This way, if the operator accidentally uses the wrong chain id, it will fail explicitly with a clear error, also it will be consistent with how we process other fields.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, agree

@perekopskiy
Copy link
Contributor Author

Closing in favor of #2049, which is going to cherry-picked to the target branch after it's merged

@perekopskiy perekopskiy deleted the add-sl-chain-id-to-batch-output-hash branch February 23, 2026 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants