Skip to content

feat: Block reexecutor tool#450

Draft
0xVolosnikov wants to merge 11 commits intomainfrom
vv-block-reexecutor-tool
Draft

feat: Block reexecutor tool#450
0xVolosnikov wants to merge 11 commits intomainfrom
vv-block-reexecutor-tool

Conversation

@0xVolosnikov
Copy link
Contributor

What ❔

Tool to reexecute ZKsync OS block using an RPC endpoint

Note: PoC in an extremely dirty state.

Why ❔

Can be useful for local debugging

Is this a breaking change?

  • Yes
  • No

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.
  • Code has been formatted.

@0xVolosnikov
Copy link
Contributor Author

0xVolosnikov commented Dec 10, 2025

Discovered issses:

  • No way to get pubdata price used

@github-actions
Copy link
Contributor

Benchmark report

Benchmark Symbol Base Eff Head Eff (%) Base Raw Head Raw (%) Base Blake Head Blake (%) Base Bigint Head Bigint (%)
block_19299001 run_prepared 310,878,544 310,878,544 (+0.00%) 268,212,768 268,212,768 (+0.00%) 410,610 410,610 (+0.00%) 9,024,004 9,024,004 (+0.00%)
block_22244135 run_prepared 191,043,084 191,043,084 (+0.00%) 164,127,024 164,127,024 (+0.00%) 172,020 172,020 (+0.00%) 6,040,935 6,040,935 (+0.00%)
precompiles bn254_ecadd 53,197 53,197 (+0.00%) 47,745 47,745 (+0.00%) 0 0 (+0.00%) 1,363 1,363 (+0.00%)
precompiles bn254_ecmul 731,034 731,034 (+0.00%) 566,846 566,846 (+0.00%) 0 0 (+0.00%) 41,047 41,047 (+0.00%)
precompiles bn254_pairing 72,689,638 72,689,638 (+0.00%) 58,161,494 58,161,494 (+0.00%) 0 0 (+0.00%) 3,632,036 3,632,036 (+0.00%)
precompiles ecrecover 480,266 481,167 (+0.19%) 311,594 312,355 (+0.24%) 0 0 (+0.00%) 42,168 42,203 (+0.08%)
precompiles id 933 933 (+0.00%) 933 933 (+0.00%) 0 0 (+0.00%) 0 0 (+0.00%)
precompiles keccak 137,578 137,578 (+0.00%) 137,578 137,578 (+0.00%) 0 0 (+0.00%) 0 0 (+0.00%)
precompiles modexp 32,084,944 32,084,944 (+0.00%) 21,427,124 21,427,124 (+0.00%) 0 0 (+0.00%) 2,664,455 2,664,455 (+0.00%)
precompiles p256_verify 750,769 750,769 (+0.00%) 472,077 472,077 (+0.00%) 0 0 (+0.00%) 69,673 69,673 (+0.00%)
precompiles point_evaluation 51,158,394 51,158,394 (+0.00%) 39,535,766 39,535,766 (+0.00%) 0 0 (+0.00%) 2,905,657 2,905,657 (+0.00%)
precompiles process_transaction 73,828,779 73,832,805 (+0.01%) 59,134,399 59,130,413 (-0.01%) 160 160 (+0.00%) 3,672,955 3,674,958 (+0.05%)
precompiles ripemd 8,028 8,028 (+0.00%) 8,028 8,028 (+0.00%) 0 0 (+0.00%) 0 0 (+0.00%)
precompiles run_prepared 148,143,759 148,146,989 (+0.00%) 118,678,707 118,667,585 (-0.01%) 5,070 5,070 (+0.00%) 7,345,983 7,349,571 (+0.05%)
precompiles sha256 13,167 13,167 (+0.00%) 13,167 13,167 (+0.00%) 0 0 (+0.00%) 0 0 (+0.00%)
precompiles verify_and_apply_batch 132,169 127,202 (-3.76%) 97,449 92,802 (-4.77%) 2,170 2,150 (-0.92%) 0 0 (+0.00%)

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.

1 participant