2018-07-17 18:39:04 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2018-07-31 18:54:45 +00:00
|
|
|
package ethereum.beacon.p2p.v1;
|
2018-07-17 18:39:04 +00:00
|
|
|
|
2019-08-10 20:13:04 +00:00
|
|
|
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
|
|
|
|
|
2019-08-13 22:48:25 +00:00
|
|
|
message Hello {
|
|
|
|
bytes fork_version = 1 [(gogoproto.moretags) = "ssz-size:\"4\""];
|
|
|
|
bytes finalized_root = 2 [(gogoproto.moretags) = "ssz-size:\"32\""];
|
|
|
|
uint64 finalized_epoch = 3;
|
|
|
|
bytes head_root = 4 [(gogoproto.moretags) = "ssz-size:\"32\""];
|
|
|
|
uint64 head_slot = 5;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Goodbye {
|
|
|
|
Reason reason = 1;
|
|
|
|
|
|
|
|
enum Reason {
|
|
|
|
UNKNOWN = 0;
|
|
|
|
CLIENT_SHUTDOWN = 1;
|
|
|
|
IRRELEVANT_NETWORK = 2;
|
|
|
|
GENERIC_ERROR = 3;
|
|
|
|
|
|
|
|
reserved 4 to 127;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
message BeaconBlocksRequest {
|
|
|
|
bytes head_block_root = 1 [(gogoproto.moretags) = "ssz-size:\"32\""];
|
|
|
|
uint64 head_slot = 2;
|
|
|
|
uint64 count = 3;
|
|
|
|
uint64 step = 4;
|
|
|
|
}
|
|
|
|
|
2019-08-16 20:03:11 +00:00
|
|
|
message ErrorMessage {
|
|
|
|
string error_message = 1;
|
|
|
|
}
|