mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-05 21:14:53 +00:00
evidence: remove ConflictingHeaders type (#5317)
## Description Remove ConflictingHeaders & compositeEvidence types Ref #5288
This commit is contained in:
@@ -87,12 +87,7 @@ func (b *Block) ValidateBasic() error {
|
||||
|
||||
// NOTE: b.Evidence.Evidence may be nil, but we're just looping.
|
||||
for i, ev := range b.Evidence.Evidence {
|
||||
switch ev.(type) {
|
||||
case *ConflictingHeadersEvidence:
|
||||
// ConflictingHeadersEvidence must be broken up in pieces and never
|
||||
// committed as a single piece.
|
||||
return fmt.Errorf("found ConflictingHeadersEvidence (#%d)", i)
|
||||
case *PotentialAmnesiaEvidence:
|
||||
if _, ok := ev.(*PotentialAmnesiaEvidence); ok {
|
||||
// PotentialAmnesiaEvidence does not contribute to anything on its own, so
|
||||
// reject it as well.
|
||||
return fmt.Errorf("found PotentialAmnesiaEvidence (#%d)", i)
|
||||
|
||||
Reference in New Issue
Block a user