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

Only hashing immutable part of network configuration for dataDir ID #2955

Merged
merged 2 commits into from
Jan 17, 2025

Conversation

jangko
Copy link
Contributor

@jangko jangko commented Dec 19, 2024

@mjfh; @agnxsh ; @arnetheduck you can use hidden config --rewrite-datadir-id to reconfigure your existing database if you encounter "Data dir already initialized with other network configuration"

Future hardfork time or in the case of holesky and mainnet, got new depositContractAddress make the network configuration can change when new features added.

Because we need something stable to identify dataDir with network configuration, the new dataDir ID is calculated using only immutable parts of network configuration.

nimbus/config.nim Outdated Show resolved Hide resolved
@advaita-saha advaita-saha merged commit aa85d6a into master Jan 17, 2025
8 checks passed
@advaita-saha advaita-saha deleted the config-hash branch January 17, 2025 10:03
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.

3 participants