Skip to content

Conversation

@marioevz
Copy link
Member

@marioevz marioevz commented Aug 7, 2024

Fixes #1135

Issue had to do with the new path state scheme, and taking a look at the differences between our SetBlock routine and Geth's writeBlockWithState, it seems like the triedb commitments are skipped in the new scheme:
https://github.com/ethereum/go-ethereum/blob/aa55f5ea200dfd07618fdf658d9d2741c3b376a8/core/blockchain.go#L1481-L1485

Solution suggested by this PR is to (1) hard-code the configuration to use the new Path scheme from now on, and (2) if we are using this Path scheme, skip the trie database commitments.

All the "Invalid Missing Ancestor" tests from the engine simulator are now working.

@marioevz
Copy link
Member Author

marioevz commented Aug 7, 2024

@Rjected please let me know if this fixes the issue for you.

@Rjected
Copy link
Contributor

Rjected commented Aug 7, 2024

@Rjected please let me know if this fixes the issue for you.

yep, I no longer get TEST ISSUE, thanks!

@marioevz marioevz merged commit fe628fd into ethereum:master Aug 7, 2024
@marioevz marioevz deleted the fix-simulators-engine-geth-node branch August 13, 2024 15:24
fedacking pushed a commit to lambdaclass/hive that referenced this pull request May 19, 2025
…reum#1148)

* simulators/ethereum/engine: use legacy Hash state scheme

* simulators/ethereum/engine: use new Path state scheme

* simulators/ethereum/engine: add comment

* simulators/ethereum/pyspec: go mod tidy
fedacking pushed a commit to lambdaclass/hive that referenced this pull request May 19, 2025
…reum#1148)

* simulators/ethereum/engine: use legacy Hash state scheme

* simulators/ethereum/engine: use new Path state scheme

* simulators/ethereum/engine: add comment

* simulators/ethereum/pyspec: go mod tidy
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.

TEST ISSUE in some missing ancestor reorg tests

2 participants