|
|
- syntax = "proto3";
- package tendermint.blockchain;
-
- option go_package = "github.com/tendermint/tendermint/proto/tendermint/blockchain";
-
- import "tendermint/types/block.proto";
-
- // BlockRequest requests a block for a specific height
- message BlockRequest {
- uint64 height = 1;
- }
-
- // NoBlockResponse informs the node that the peer does not have block at the requested height
- message NoBlockResponse {
- uint64 height = 1;
- }
-
- // BlockResponse returns block to the requested
- message BlockResponse {
- tendermint.types.Block block = 1;
- }
-
- // StatusRequest requests the status of a peer.
- message StatusRequest {
- }
-
- // StatusResponse is a peer response to inform their status.
- message StatusResponse {
- uint64 height = 1;
- uint64 base = 2;
- }
-
- message Message {
- oneof sum {
- BlockRequest block_request = 1;
- NoBlockResponse no_block_response = 2;
- BlockResponse block_response = 3;
- StatusRequest status_request = 4;
- StatusResponse status_response = 5;
- }
- }
|