mirror of
https://github.com/tendermint/tendermint.git
synced 2026-07-19 22:42:24 +00:00
DUPLICATE_VOTE evidence type
This commit is contained in:
+6
-2
@@ -9,6 +9,11 @@ import (
|
||||
"github.com/tendermint/tmlibs/merkle"
|
||||
)
|
||||
|
||||
const (
|
||||
// Evidence type for duplicate vote
|
||||
DUPLICATE_VOTE = "DUPLICATE_VOTE"
|
||||
)
|
||||
|
||||
// ErrEvidenceInvalid wraps a piece of evidence and the error denoting how or why it is invalid.
|
||||
type ErrEvidenceInvalid struct {
|
||||
Evidence Evidence
|
||||
@@ -54,8 +59,7 @@ type DuplicateVoteEvidence struct {
|
||||
|
||||
// String returns a string representation of the evidence.
|
||||
func (dve *DuplicateVoteEvidence) String() string {
|
||||
return fmt.Sprintf("VoteA: %v; VoteB: %v", dve.VoteA, dve.VoteB)
|
||||
|
||||
return DUPLICATE_VOTE
|
||||
}
|
||||
|
||||
// Height returns the height this evidence refers to.
|
||||
|
||||
Reference in New Issue
Block a user