Skip to content

Importing ERA files on Gnosis Chain fails on the Shapella block #7527

@filoozom

Description

@filoozom

Describe the bug

I'm trying to import ERA files with a trusted checkpoint sync to rebuild an archive node from genesis. However, it fails with the following error on the Shapella block:

NTC 2025-09-19 11:58:37.520+00:00 Reindexing historical state lookup tables (you can interrupt this process at any time) restUrl=http://172.21.0.110:5052 syncTarget=21389312
INF 2025-09-19 11:58:39.504+00:00 Recreating state snapshot                  topics="chaindag" slot=10379776 startStateRoot=e8d45f9e startSlot=10379264
ERR 2025-09-19 11:58:39.671+00:00 Failed to apply block while building index topics="chaindag" state_bid=fa4d4bce:10379264 error="process_bls_to_execution_change: invalid withdrawal prefix"
NTC 2025-09-19 11:58:39.671+00:00 Done, your beacon node is ready to serve you! Don't forget to check that you're on the canonical chain by comparing the checkpoint root with other online sources. See https://nimbus.guide/trusted-node-sync.html for more information. checkpoint=454baecd:21389312 restUrl=https://beacon-api-archival.gnosis.gateway.fm syncTarget=21389312

To Reproduce

$ mkdir -p nimbus/era
$ cd nimbus/era
$ wget --no-parent  -A '*.era' -q --show-progress -nd -r -c https://gbc-era.gnosiscoredevs.io/
$ cd ../..
$ nimbus_beacon_node trustedNodeSync --trusted-node-url=https://beacon-api-archival.gnosis.gateway.fm --data-dir=$(pwd)/nimbus --reindex=true --network=gnosis --era-dir=$(pwd)/nimbus/era --state-id=21389312

Additional context

  1. The last available ERA file is gnosis-02612-24eac76f.era, which is 2.5m+ slots old at this point, so the trusted node needs to be an archive node.
  2. The slot in question: https://gnosis.beaconcha.in/slot/10379264

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions