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

engine-transition chain import fails due to gas mismatch in execution #1746

Closed
1 task done
Tracked by #2625
Rjected opened this issue Mar 14, 2023 · 1 comment
Closed
1 task done
Tracked by #2625
Labels
A-execution Related to the Execution and EVM C-bug An unexpected or incorrect behavior

Comments

@Rjected
Copy link
Member

Rjected commented Mar 14, 2023

Describe the bug

The hive test engine-transition/Two Block Post-PoS Re-org to Higher-Height PoW Chain (reth) is currently failing in execution when importing its chain file.

This is the error for the first block:

2023-03-14T19:42:17.485155Z  INFO reth 0.1.0 starting
2023-03-14T19:42:17.485290Z  INFO Configuration loaded path=/Users/dan/hive-data
2023-03-14T19:42:17.485294Z  INFO Opening database path=/Users/dan/hive-data
2023-03-14T19:42:17.494302Z  INFO Database opened
2023-03-14T19:42:17.500484Z  INFO Importing chain file
2023-03-14T19:42:17.501625Z  INFO Chain file imported
2023-03-14T19:42:17.501643Z  INFO Consensus engine initialized
2023-03-14T19:42:17.501827Z  INFO Starting sync pipeline
2023-03-14T19:42:17.502418Z  INFO Executing stage stage=Headers
2023-03-14T19:42:17.502615Z  INFO Stage finished executing stage=Headers checkpoint=1
2023-03-14T19:42:17.503008Z  INFO Status connected_peers=0 stage=None checkpoint=1
2023-03-14T19:42:17.508609Z  INFO Executing stage stage=TotalDifficulty
2023-03-14T19:42:17.508618Z  INFO Stage finished executing stage=TotalDifficulty checkpoint=1
2023-03-14T19:42:17.516568Z  INFO Executing stage stage=Bodies
2023-03-14T19:42:17.516884Z  INFO Stage finished executing stage=Bodies checkpoint=1
2023-03-14T19:42:17.522092Z  INFO Executing stage stage=SenderRecovery
2023-03-14T19:42:17.522936Z  INFO Stage finished executing stage=SenderRecovery checkpoint=1
2023-03-14T19:42:17.527346Z  INFO Executing stage stage=Execution
Error: A stage encountered an irrecoverable error.

Caused by:
   0: Stage encountered a execution error in block 1: Block gas used 21000 is different from expected gas used 43104..
   1: Block gas used 21000 is different from expected gas used 43104.

Location:
    bin/reth/src/chain/import.rs:117:47

Steps to reproduce

Easiest way to reproduce:

  1. Clone the hive repo
  2. Create a new directory for the reth db, in this I use ~/hive-data. Make sure it does not contain an existing mdbx.dat and mdbx.lck
  3. Navigate to the cloned hive repo: cd hive
reth import simulators/ethereum/engine/chains/blocks_1_td_196608.rlp --chain simulators/ethereum/engine/init/genesis.json --db ~/hive-data

Run the steps in #851, with ./hive --client reth --sim ethereum/engine --sim.limit "engine-transition/Two Block Post-PoS Re-org to Higher-Height PoW Chain"

The chain file is here:
https://github.com/ethereum/hive/blob/master/simulators/ethereum/engine/chains/blocks_1_td_196608.rlp

And the genesis is here:
https://github.com/ethereum/hive/blob/master/simulators/ethereum/engine/init/genesis.json

Node logs

No response

Platform(s)

No response

What version/commit are you on?

No response

Code of Conduct

  • I agree to follow the Code of Conduct
@Rjected Rjected added C-bug An unexpected or incorrect behavior A-execution Related to the Execution and EVM labels Mar 14, 2023
@rakita
Copy link
Collaborator

rakita commented Mar 15, 2023

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-execution Related to the Execution and EVM C-bug An unexpected or incorrect behavior
Projects
Archived in project
Development

No branches or pull requests

2 participants