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

Problem: exported genesis state files couldn't init a new chain. code hash mismatch #646

Open
JayT106 opened this issue Aug 15, 2022 · 3 comments
Assignees

Comments

@JayT106
Copy link
Collaborator

JayT106 commented Aug 15, 2022

Describe the bug

Testing with v0.7.0 archive inode
The exported genesis state has panic when starting a chain calling InitGenesus, got panic("code don't match codeHash")
it might relate to the ethermint recent patch PR. The code has been deleted in the evm code storage but the account codehash in the account keeper didn't change.

Solution
Suggestion by @yihuang
offline migration script to correct the evm account state

Additional context
also relate: #635

@JayT106
Copy link
Collaborator Author

JayT106 commented Aug 31, 2022

The other solution in crypto-org-chain/ethermint#146, exempts 2 cases when checking the codehash mismatch instead of modifying the eth account state.

Long-term: migration script.

@JayT106
Copy link
Collaborator Author

JayT106 commented Aug 31, 2022

evmos/ethermint#1319

@JayT106
Copy link
Collaborator Author

JayT106 commented Jan 10, 2023

The evmos/ethermint#1320 has been released in the Ethermint v0.20, I will test it again on the Cronos V1.0 archive inode.

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

No branches or pull requests

1 participant