forked from cosmos/cosmos-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0b9f494
commit 01790eb
Showing
9 changed files
with
543 additions
and
625 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
syntax = "proto3"; | ||
package tendermint.types; | ||
|
||
option go_package = "github.com/tendermint/tendermint/proto/tendermint/types"; | ||
|
||
import "gogoproto/gogo.proto"; | ||
import "google/protobuf/timestamp.proto"; | ||
import "tendermint/types/types.proto"; | ||
import "tendermint/types/validator.proto"; | ||
|
||
message Evidence { | ||
oneof sum { | ||
DuplicateVoteEvidence duplicate_vote_evidence = 1; | ||
LightClientAttackEvidence light_client_attack_evidence = 2; | ||
} | ||
} | ||
|
||
// DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. | ||
message DuplicateVoteEvidence { | ||
tendermint.types.Vote vote_a = 1; | ||
tendermint.types.Vote vote_b = 2; | ||
int64 total_voting_power = 3; | ||
int64 validator_power = 4; | ||
google.protobuf.Timestamp timestamp = 5 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; | ||
} | ||
|
||
// LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. | ||
message LightClientAttackEvidence { | ||
tendermint.types.LightBlock conflicting_block = 1; | ||
int64 common_height = 2; | ||
repeated tendermint.types.Validator byzantine_validators = 3; | ||
int64 total_voting_power = 4; | ||
google.protobuf.Timestamp timestamp = 5 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; | ||
} | ||
|
||
message EvidenceList { | ||
repeated Evidence evidence = 1 [(gogoproto.nullable) = false]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.