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

Define state summary proto #4967

Merged
merged 7 commits into from Mar 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 3 additions & 4 deletions proto/beacon/db/attestation_container.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions proto/beacon/db/finalized_block_root_container.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions proto/beacon/db/powchain.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions proto/beacon/p2p/v1/archive.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions proto/beacon/p2p/v1/messages.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

418 changes: 347 additions & 71 deletions proto/beacon/p2p/v1/types.pb.go

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions proto/beacon/p2p/v1/types.proto
Expand Up @@ -73,3 +73,16 @@ message HistoricalBatch {
repeated bytes block_roots = 1 [(gogoproto.moretags) = "ssz-size:\"block_roots.size\""];
repeated bytes state_roots = 2 [(gogoproto.moretags) = "ssz-size:\"state_roots.size\""];
}

// The state summary object is defined for summarizing a state
// of a given slot. The summary facilitates regeneration of a
// specific state to allow easy playback using pre-saved state
// and blocks.
message StateSummary {
// The slot of the state.
uint64 slot = 1;
// The block root of the state.
bytes root = 2;
// The block root at epoch boundary of the state.
bytes boundary_root = 3;
}
7 changes: 3 additions & 4 deletions proto/beacon/rpc/v1/services.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.