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

chia db validate throws error if validating a testnet11 database #19172

Closed
buggybuck opened this issue Jan 23, 2025 · 3 comments
Closed

chia db validate throws error if validating a testnet11 database #19172

buggybuck opened this issue Jan 23, 2025 · 3 comments
Assignees

Comments

@buggybuck
Copy link

Hi there!

In a testnet11 setup chia db validate throws an error (FAILED: Blockchain has invalid genesis challenge [..]).

The validation succeeds when you change

# mainnet genesis challenge
AGG_SIG_DATA = bytes32.fromhex("ccd5bb71183532bff220ba46c268991a3ff07eb358e8255a65c30a2dce0e5fbb") 

to

# testnet11 genesis challenge
AGG_SIG_DATA = bytes32.fromhex("37a90eb5185a9c4439a91ddc98bbadce7b4feba060d50116a067de66bf236615") 

in chia/consensus/default_constants.py.

I checked this on 2.4.3.dev0 and 2.5.1rc2d.dev3.

Kind regards

@BrandtH22
Copy link
Contributor

Hey @buggybuck , thank you for the report.
We do have this on our radar to fix but that might take some time.

Your workaround with editing the constant itself works for the interim, there is also a newer validate function being developed with the rust codebase but it is currently a bit trickier to access and use:
https://github.com/Chia-Network/chia_rs/blob/main/crates/chia-tools/src/bin/validate-blockchain-db.rs

@BrandtH22
Copy link
Contributor

Hey @buggybuck Quex has a pr (#19182) that should resolve this issue. If you want to test you can either build from source based on that PR or let us know your OS and we can provide a packaged installer for this specific PR 👍

@buggybuck
Copy link
Author

Hi BrandtH22 & Quexington! Thank you for the fix! I applied the changes. Works great! Cheers!

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

3 participants