Browse Source
Move CanonicalVoteExtension to canonical types proto defs
Signed-off-by: Thane Thomson <connect@thanethomson.com>
thane/7655-vote-extensions
Thane Thomson
3 years ago
No known key found for this signature in database
GPG Key ID: 19811391D676EE45
2 changed files with
9 additions and
10 deletions
-
proto/tendermint/abci/types.proto
-
proto/tendermint/types/canonical.proto
|
|
@ -451,16 +451,6 @@ message ExtendedVoteInfo { |
|
|
|
bytes vote_extension = 3; |
|
|
|
} |
|
|
|
|
|
|
|
// CanonicalVoteExtension |
|
|
|
// TODO: move this to core Tendermint data structures |
|
|
|
message CanonicalVoteExtension { |
|
|
|
bytes extension = 1; |
|
|
|
int64 height = 2; |
|
|
|
int32 round = 3; |
|
|
|
string chain_id = 4; |
|
|
|
bytes address = 5; |
|
|
|
} |
|
|
|
|
|
|
|
enum EvidenceType { |
|
|
|
UNKNOWN = 0; |
|
|
|
DUPLICATE_VOTE = 1; |
|
|
|
|
|
@ -35,3 +35,12 @@ message CanonicalVote { |
|
|
|
google.protobuf.Timestamp timestamp = 5 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; |
|
|
|
string chain_id = 6 [(gogoproto.customname) = "ChainID"]; |
|
|
|
} |
|
|
|
|
|
|
|
// CanonicalVoteExtension |
|
|
|
message CanonicalVoteExtension { |
|
|
|
bytes extension = 1; |
|
|
|
int64 height = 2; |
|
|
|
int32 round = 3; |
|
|
|
string chain_id = 4; |
|
|
|
bytes address = 5; |
|
|
|
} |