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
parent
commit
c978c29515
No known key found for this signature in database GPG Key ID: 19811391D676EE45
2 changed files with 9 additions and 10 deletions
  1. +0
    -10
      proto/tendermint/abci/types.proto
  2. +9
    -0
      proto/tendermint/types/canonical.proto

+ 0
- 10
proto/tendermint/abci/types.proto View File

@ -451,16 +451,6 @@ message ExtendedVoteInfo {
bytes vote_extension = 3; 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 { enum EvidenceType {
UNKNOWN = 0; UNKNOWN = 0;
DUPLICATE_VOTE = 1; DUPLICATE_VOTE = 1;


+ 9
- 0
proto/tendermint/types/canonical.proto View File

@ -35,3 +35,12 @@ message CanonicalVote {
google.protobuf.Timestamp timestamp = 5 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; google.protobuf.Timestamp timestamp = 5 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
string chain_id = 6 [(gogoproto.customname) = "ChainID"]; 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;
}

Loading…
Cancel
Save