github.com/pokt-network/tendermint@v0.32.11-0.20230426215212-59310158d3e9/proto/blockchain/msgs.proto (about) 1 syntax = "proto3"; 2 package tendermint.proto.blockchain; 3 4 option go_package = "github.com/tendermint/tendermint/proto/blockchain"; 5 6 import "third_party/proto/gogoproto/gogo.proto"; 7 import "proto/types/block.proto"; 8 9 // BlockRequest requests a block for a specific height 10 message BlockRequest { 11 int64 height = 1; 12 } 13 14 // NoBlockResponse informs the node that the peer does not have block at the requested height 15 message NoBlockResponse { 16 int64 height = 1; 17 } 18 19 // BlockResponse returns block to the requested 20 message BlockResponse { 21 tendermint.proto.types.Block block = 1 [(gogoproto.nullable) = false]; 22 } 23 24 // StatusRequest requests the status of a node (Height & Base) 25 message StatusRequest { 26 int64 height = 1; 27 int64 base = 2; 28 } 29 30 // StatusResponse is a peer response to infrom their status 31 message StatusResponse { 32 int64 height = 1; 33 int64 base = 2; 34 } 35 36 message Message { 37 oneof sum { 38 BlockRequest block_request = 1; 39 NoBlockResponse no_block_response = 2; 40 BlockResponse block_response = 3; 41 StatusRequest status_request = 4; 42 StatusResponse status_response = 5; 43 } 44 }