prysm-pulse/proto/beacon/p2p/v1/messages.proto
Raul Jordan 1065617087 Replace Attestation Type Primitive With Proto Generated Type (#1149)
* first commit, remote att types

* no more agg attestation proto

* regen mock

* only attestations

* proto

* att process

* fix att references

* more tests passing

* use att protos

* complete

* Update dependency com_github_deckarep_golang_set to v1 (#1159)

* Update dependency com_github_edsrzf_mmap_go to v1 (#1160)

* Update dependency com_github_go_stack_stack to v1 (#1161)

* Update dependency com_github_rs_cors to v1 (#1162)

* Update dependency in_gopkg_urfave_cli_v1 to v1 (#1163)

* change visibility
2018-12-22 15:30:59 -05:00

57 lines
976 B
Protocol Buffer

syntax = "proto3";
package ethereum.beacon.p2p.v1;
import "proto/beacon/p2p/v1/types.proto";
enum Topic {
UNKNOWN = 0;
BEACON_BLOCK_ANNOUNCE = 1;
BEACON_BLOCK_REQUEST = 2;
BEACON_BLOCK_REQUEST_BY_SLOT_NUMBER = 3;
BEACON_BLOCK_RESPONSE = 4;
CHAIN_HEAD_REQUEST = 5;
CHAIN_HEAD_RESPONSE = 6;
BEACON_STATE_HASH_ANNOUNCE = 7;
BEACON_STATE_REQUEST = 8;
BEACON_STATE_RESPONSE = 9;
}
message BeaconBlockAnnounce {
bytes hash = 1;
uint64 slot_number = 2;
}
message BeaconBlockRequest {
bytes hash = 1;
}
message BeaconBlockRequestBySlotNumber{
uint64 slot_number = 1;
}
message BeaconBlockResponse {
BeaconBlock block = 1;
Attestation attestation = 2;
}
message ChainHeadRequest {}
message ChainHeadResponse {
bytes hash = 1;
uint64 slot = 2;
BeaconBlock block = 3;
}
message BeaconStateHashAnnounce {
bytes hash = 1;
}
message BeaconStateRequest {
bytes hash = 1;
}
message BeaconStateResponse {
BeaconState beacon_state = 1;
}