prysm-pulse/proto/beacon/p2p/v1/messages.proto
Victor Farazdagi a8e501b3cf
ETH2 Types: Epoch (#8373)
* update deps

* update deps

* update protos/*

* update deps

* reset protos

* update protos

* update shared/params/config

* update protos

* update /shared

* update shared/slotutil and shared/testutil

* update beacon-chain/core/helpers

* updates beacon-chain/state

* update beacon-chain/forkchoice

* update beacon-chain/blockchain

* update beacon-chain/cache

* update beacon-chain/core

* update beacon-chain/db

* update beacon-chain/node

* update beacon-chain/p2p

* update beacon-chain/rpc

* update beacon-chain/sync

* go mod tidy

* make sure that beacon-chain build suceeds

* go fmt

* update e2e tests

* update slasher

* remove redundant alias

* update validator

* gazelle

* fix build errors in unit tests

* go fmt

* update deps

* update fuzz/BUILD.bazel

* fix unit tests

* more unit test fixes

* fix blockchain UTs

* more unit test fixes
2021-02-09 10:05:22 +00:00

37 lines
1.1 KiB
Protocol Buffer

syntax = "proto3";
package ethereum.beacon.p2p.v1;
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
message Status {
bytes fork_digest = 1 [(gogoproto.moretags) = "ssz-size:\"4\""];
bytes finalized_root = 2 [(gogoproto.moretags) = "ssz-size:\"32\""];
uint64 finalized_epoch = 3 [(gogoproto.casttype) = "github.com/prysmaticlabs/eth2-types.Epoch"];
bytes head_root = 4 [(gogoproto.moretags) = "ssz-size:\"32\""];
uint64 head_slot = 5;
}
message BeaconBlocksByRangeRequest {
uint64 start_slot = 1;
uint64 count = 2;
uint64 step = 3;
}
message ENRForkID {
bytes current_fork_digest = 1 [(gogoproto.moretags) = "ssz-size:\"4\""];
bytes next_fork_version = 2 [(gogoproto.moretags) = "ssz-size:\"4\""];
uint64 next_fork_epoch = 3 [(gogoproto.casttype) = "github.com/prysmaticlabs/eth2-types.Epoch"];
}
/*
Spec Definition:
MetaData
(
seq_number: uint64
attnets: Bitvector[ATTESTATION_SUBNET_COUNT]
)
*/
message MetaData {
uint64 seq_number =1;
bytes attnets = 2 [(gogoproto.moretags) = "ssz-size:\"8\"", (gogoproto.casttype) = "github.com/prysmaticlabs/go-bitfield.Bitvector64"];
}