mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-21 07:24:36 +00:00
evidence: structs can independently form abci evidence (#5610)
This commit is contained in:
+2
-3
@@ -12,7 +12,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
|
||||
@@ -147,6 +147,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