challenger: Transition to invalid hash at superroot boundaries #14034
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Update the challenger to check the CrossSafeDerivedFrom field of super root responses to determine if the claim is unsafe.
Doesn't yet handle transitioning at the first optimistic block that is unsafe because we will need to know what block number needs to be safe for each chain at the next timestamp to calculate that. Currently the challenger doesn't ever parse the rollup config so it doesn't have that info - will need some more plumbing to actually load rollup configs (we have them available as we pass them through to op-program).
Tests
Added unit tests. This doesn't get any more action tests passing as the chains aren't actually long enough to hit these cases. Will need to improve the action tests but avoiding conflicts with other PRs for now.
Metadata
Part of #13903