Skip to content

state-sync txs inclusion for 3.0#29

Closed
marcello33 wants to merge 3 commits intorelease/3.0from
mardizzone/ss-pos-3253-3.0
Closed

state-sync txs inclusion for 3.0#29
marcello33 wants to merge 3 commits intorelease/3.0from
mardizzone/ss-pos-3253-3.0

Conversation

@marcello33
Copy link

@marcello33 marcello33 commented Oct 2, 2025

Same as #27 but on top of 3.0.x

In this PR, we implement the canonical inclusion of state-sync txs in block bodies, as per relative PIP.
This PR reflects the Erigon's changes for this PR in bor:

The PR introduces a new typed system transaction, which is included to blocks that execute StateSync events.
Such txs have zero gas/fees and does not run EVM code, but anchors all StateSync outcomes into the canonical transaction/receipt set. This results in inclusion of such txs into transactionsRoot, receiptsRoot, and logsBloom.

The changes requires a hard fork.

Test worked when enabling StateSync HF from block 0 with the following kurtosis configs

  • parameters:
polygon_pos_package:
  participants:
    - kind: validator
      cl_type: heimdall-v2
      cl_image: 0xpolygon/heimdall-v2:0.3.1
      el_type: erigon
      el_image: 0xpolygon/erigon:v3.0.18-test
      count: 4
    - kind: rpc
      cl_type: heimdall-v2
      cl_image: 0xpolygon/heimdall-v2:0.3.1
      el_type: erigon
      el_image: 0xpolygon/erigon:v3.0.18-test
      count: 2
  additional_services:
    - test_runner
  • erigon genesis
{
 "config": {
   ...
   },
   "bor": {
     "agraBlock": 0,
     "napoliBlock": 0,
     "jaipurBlock": 0,
     "delhiBlock": 0,
     "indoreBlock": 0,
     "ahmedabadBlock": 0,
     "bhilaiBlock": 0,
     "stateSyncBlock": 0,
     ...
}

Receipt was successfully received
image

@marcello33 marcello33 changed the title state-sync txs inclusion state-sync txs inclusion for 3.0 Oct 3, 2025
@marcello33
Copy link
Author

Closing in favour of #42

@marcello33 marcello33 closed this Oct 14, 2025
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

Comments