mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-26 09:54:19 +00:00
evidence: structs can independently form abci evidence (#5610)
This commit is contained in:
+2
-3
@@ -11,7 +11,7 @@ import (
|
||||
//-----------------------------------------------------
|
||||
// Validate block
|
||||
|
||||
func validateBlock(evidencePool EvidencePool, state State, block *types.Block) error {
|
||||
func validateBlock(state State, block *types.Block) error {
|
||||
// Validate internal consistency.
|
||||
if err := block.ValidateBasic(); err != nil {
|
||||
return err
|
||||
@@ -141,6 +141,5 @@ func validateBlock(evidencePool EvidencePool, state State, block *types.Block) e
|
||||
return types.NewErrEvidenceOverflow(max, got)
|
||||
}
|
||||
|
||||
// Validate all evidence.
|
||||
return evidencePool.CheckEvidence(block.Evidence.Evidence)
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user