-
Notifications
You must be signed in to change notification settings - Fork 3.9k
op-supernode: Update superroot_atTimestamp response format #18652
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
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
f6e86b2
op-supernode: Don't treat all errors as not found.
ajsutton aedc490
op-service: Define JSON marshalling for SuperV1
ajsutton 896c1fa
op-supernode: Update superroot_atTimestamp response format
ajsutton 7424be4
op-supernode: Make optimistic blocks available even when full super r…
ajsutton 552f194
op-supernode: Add JSON tag to data field.
ajsutton f32ac40
op-supernode: Fix super root calculation
ajsutton 94e356b
op-supernode: Fix grammar
ajsutton File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| package eth | ||
|
|
||
| // OutputWithRequiredL1 is the full Output and its source L1 block | ||
| type OutputWithRequiredL1 struct { | ||
| Output *OutputResponse `json:"output"` | ||
| RequiredL1 BlockID `json:"required_l1"` | ||
| } | ||
|
|
||
| type SuperRootResponseData struct { | ||
|
|
||
| // VerifiedRequiredL1 is the minimum L1 block including the required data to fully verify all blocks at this timestamp | ||
| VerifiedRequiredL1 BlockID `json:"verified_required_l1"` | ||
|
|
||
| // Super is the unhashed data for the superroot at the given timestamp after all verification is applied. | ||
| Super Super `json:"super"` | ||
|
|
||
| // SuperRoot is the superroot at the given timestamp after all verification is applied. | ||
| SuperRoot Bytes32 `json:"super_root"` | ||
| } | ||
|
|
||
| // AtTimestampResponse is the response superroot_atTimestamp | ||
| type SuperRootAtTimestampResponse struct { | ||
| // CurrentL1 is the highest L1 block that has been fully derived and verified by all chains. | ||
| CurrentL1 BlockID `json:"current_l1"` | ||
|
|
||
| // OptimisticAtTimestamp is the L2 block that would be applied if verification were assumed to be successful, | ||
| // and the minimum L1 block required to derive them. If Data is nil, some chains may be absent from this map, | ||
| // indicating that there is no optimistic block for the chain at the requested timestamp that can be derived | ||
| // from the L1 data currently processed. | ||
| OptimisticAtTimestamp map[ChainID]OutputWithRequiredL1 `json:"optimistic_at_timestamp"` | ||
|
|
||
| // Data provides information about the super root at the requested timestamp if present. If block data at the | ||
| // requested timestamp is not present, the data will be nil. | ||
| Data *SuperRootResponseData `json:"data,omitempty"` | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.