mirror of
https://github.com/tendermint/tendermint.git
synced 2026-08-21 22:56:22 +00:00
abci: fix abci evidence types (#5174)
This commit is contained in:
+6
-7
@@ -16,11 +16,10 @@ import (
|
||||
// Use strings to distinguish types in ABCI messages
|
||||
|
||||
const (
|
||||
ABCIEvidenceTypeDuplicateVote = "duplicate/vote"
|
||||
ABCIEvidenceTypePhantom = "phantom"
|
||||
ABCIEvidenceTypeLunatic = "lunatic"
|
||||
ABCIEvidenceTypePotentialAmnesia = "potential_amnesia"
|
||||
ABCIEvidenceTypeMock = "mock/evidence"
|
||||
ABCIEvidenceTypeDuplicateVote = "duplicate/vote"
|
||||
ABCIEvidenceTypePhantom = "phantom"
|
||||
ABCIEvidenceTypeLunatic = "lunatic"
|
||||
ABCIEvidenceTypeAmnesia = "amnesia"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -137,8 +136,8 @@ func (tm2pb) Evidence(ev Evidence, valSet *ValidatorSet, evTime time.Time) abci.
|
||||
evType = ABCIEvidenceTypePhantom
|
||||
case *LunaticValidatorEvidence:
|
||||
evType = ABCIEvidenceTypeLunatic
|
||||
case *PotentialAmnesiaEvidence:
|
||||
evType = ABCIEvidenceTypePotentialAmnesia
|
||||
case *AmnesiaEvidence:
|
||||
evType = ABCIEvidenceTypeAmnesia
|
||||
default:
|
||||
panic(fmt.Sprintf("Unknown evidence type: %v %v", ev, reflect.TypeOf(ev)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user