github.com/number571/tendermint@v0.34.11-gost/proto/tendermint/statesync/types.proto (about) 1 syntax = "proto3"; 2 package tendermint.statesync; 3 4 import "tendermint/types/types.proto"; 5 6 option go_package = "github.com/number571/tendermint/proto/tendermint/statesync"; 7 8 message Message { 9 oneof sum { 10 SnapshotsRequest snapshots_request = 1; 11 SnapshotsResponse snapshots_response = 2; 12 ChunkRequest chunk_request = 3; 13 ChunkResponse chunk_response = 4; 14 LightBlockRequest light_block_request = 5; 15 LightBlockResponse light_block_response = 6; 16 } 17 } 18 19 message SnapshotsRequest {} 20 21 message SnapshotsResponse { 22 uint64 height = 1; 23 uint32 format = 2; 24 uint32 chunks = 3; 25 bytes hash = 4; 26 bytes metadata = 5; 27 } 28 29 message ChunkRequest { 30 uint64 height = 1; 31 uint32 format = 2; 32 uint32 index = 3; 33 } 34 35 message ChunkResponse { 36 uint64 height = 1; 37 uint32 format = 2; 38 uint32 index = 3; 39 bytes chunk = 4; 40 bool missing = 5; 41 } 42 43 message LightBlockRequest { 44 uint64 height = 1; 45 } 46 47 message LightBlockResponse { 48 tendermint.types.LightBlock light_block = 1; 49 }