github.com/number571/tendermint@v0.34.11-gost/proto/tendermint/consensus/wal.proto (about) 1 syntax = "proto3"; 2 package tendermint.consensus; 3 4 option go_package = "github.com/number571/tendermint/proto/tendermint/consensus"; 5 6 import "gogoproto/gogo.proto"; 7 import "tendermint/consensus/types.proto"; 8 import "tendermint/types/events.proto"; 9 import "google/protobuf/duration.proto"; 10 import "google/protobuf/timestamp.proto"; 11 12 // MsgInfo are msgs from the reactor which may update the state 13 message MsgInfo { 14 Message msg = 1 [(gogoproto.nullable) = false]; 15 string peer_id = 2 [(gogoproto.customname) = "PeerID"]; 16 } 17 18 // TimeoutInfo internally generated messages which may update the state 19 message TimeoutInfo { 20 google.protobuf.Duration duration = 1 21 [(gogoproto.nullable) = false, (gogoproto.stdduration) = true]; 22 int64 height = 2; 23 int32 round = 3; 24 uint32 step = 4; 25 } 26 27 // EndHeight marks the end of the given height inside WAL. 28 // @internal used by scripts/wal2json util. 29 message EndHeight { 30 int64 height = 1; 31 } 32 33 message WALMessage { 34 oneof sum { 35 tendermint.types.EventDataRoundState event_data_round_state = 1; 36 MsgInfo msg_info = 2; 37 TimeoutInfo timeout_info = 3; 38 EndHeight end_height = 4; 39 } 40 } 41 42 // TimedWALMessage wraps WALMessage and adds Time for debugging purposes. 43 message TimedWALMessage { 44 google.protobuf.Timestamp time = 1 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; 45 WALMessage msg = 2; 46 }