-
Notifications
You must be signed in to change notification settings - Fork 305
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
Add stateful checks for chain ID and expiry height #4315
Conversation
Looks like there are tests which are not setting the chain ID. Is this because the chain ID is set correctly in client tooling but not in tests, or is it not set in both? |
Thanks a lot for noticing this, and taking the time to make a PR to fix it, I am very appreciative that this was caught. ACK, I'm going to push this across the finish line by fixing the test suite and destructuring |
Should this be merged now? Happy to push the button myself but wanted to double-check since it contains consensus-breaking changes. |
let app_state = AppState::Content( | ||
genesis::Content::default() | ||
.with_epoch_duration(EPOCH_DURATION) | ||
.with_chain_id(TestNode::<()>::CHAIN_ID.to_string()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just for clarification: was this necessary to make the change? It seems desirable to allow the chain ID to be ""
for testing, and it seems like there's no downside since any real network will have a chain ID (which wherefore won't match).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not necessary, and an empty chain id would work!
Let's wait to merge this until after resolving our current planner issues. |
I'm going to rebase against main and merge on green ci. |
9a944a7
to
1e64696
Compare
Describe your changes
Resolves #4308.
Checklist before requesting a review
This is a consensus-breaking change.