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
|
|
|
|
2018-11-20 19:43:07 +00:00
|
|
|
import "proto/beacon/p2p/v1/types.proto";
|
2018-07-28 19:53:02 +00:00
|
|
|
|
2018-08-29 16:32:54 +00:00
|
|
|
enum Topic {
|
|
|
|
UNKNOWN = 0;
|
2018-11-21 18:00:36 +00:00
|
|
|
BEACON_BLOCK_ANNOUNCE = 1;
|
2018-08-29 16:32:54 +00:00
|
|
|
BEACON_BLOCK_REQUEST = 2;
|
|
|
|
BEACON_BLOCK_REQUEST_BY_SLOT_NUMBER = 3;
|
|
|
|
BEACON_BLOCK_RESPONSE = 4;
|
2018-11-19 01:59:11 +00:00
|
|
|
CHAIN_HEAD_REQUEST = 5;
|
|
|
|
CHAIN_HEAD_RESPONSE = 6;
|
2018-12-01 22:09:12 +00:00
|
|
|
BEACON_STATE_HASH_ANNOUNCE = 7;
|
|
|
|
BEACON_STATE_REQUEST = 8;
|
|
|
|
BEACON_STATE_RESPONSE = 9;
|
2018-09-09 03:05:36 +00:00
|
|
|
}
|
2018-08-29 16:32:54 +00:00
|
|
|
|
2018-11-21 18:00:36 +00:00
|
|
|
message BeaconBlockAnnounce {
|
2018-07-28 19:53:02 +00:00
|
|
|
bytes hash = 1;
|
2018-11-21 18:00:36 +00:00
|
|
|
uint64 slot_number = 2;
|
2018-07-28 19:53:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message BeaconBlockRequest {
|
|
|
|
bytes hash = 1;
|
|
|
|
}
|
|
|
|
|
2018-08-07 12:12:10 +00:00
|
|
|
message BeaconBlockRequestBySlotNumber{
|
|
|
|
uint64 slot_number = 1;
|
|
|
|
}
|
|
|
|
|
2018-07-28 19:53:02 +00:00
|
|
|
message BeaconBlockResponse {
|
2018-08-05 23:23:31 +00:00
|
|
|
BeaconBlock block = 1;
|
2018-09-15 14:51:17 +00:00
|
|
|
AggregatedAttestation attestation = 2;
|
2018-08-05 23:23:31 +00:00
|
|
|
}
|
|
|
|
|
2018-11-20 19:43:07 +00:00
|
|
|
message ChainHeadRequest {}
|
2018-11-19 01:59:11 +00:00
|
|
|
|
|
|
|
message ChainHeadResponse {
|
|
|
|
bytes hash = 1;
|
|
|
|
uint64 slot = 2;
|
|
|
|
BeaconBlock block = 3;
|
|
|
|
}
|
|
|
|
|
2018-12-01 22:09:12 +00:00
|
|
|
message BeaconStateHashAnnounce {
|
2018-07-31 00:29:40 +00:00
|
|
|
bytes hash = 1;
|
|
|
|
}
|
|
|
|
|
2018-12-01 22:09:12 +00:00
|
|
|
message BeaconStateRequest {
|
2018-07-31 00:29:40 +00:00
|
|
|
bytes hash = 1;
|
|
|
|
}
|
|
|
|
|
2018-12-01 22:09:12 +00:00
|
|
|
message BeaconStateResponse {
|
|
|
|
BeaconState beacon_state = 1;
|
2018-08-05 23:23:31 +00:00
|
|
|
}
|