mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-29 11:15:50 +00:00
metalinter
This commit is contained in:
@@ -12,11 +12,6 @@ import (
|
||||
//-----------------------------------------------------
|
||||
// Validate block
|
||||
|
||||
// ValidateBlock validates the block against the state.
|
||||
func _ValidateBlock(s State, block *types.Block) error {
|
||||
return validateBlock(dbm.NewMemDB(), s, block)
|
||||
}
|
||||
|
||||
func validateBlock(stateDB dbm.DB, s State, b *types.Block) error {
|
||||
// validate internal consistency
|
||||
if err := b.ValidateBasic(); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user