metalinter

This commit is contained in:
Ethan Buchman
2017-12-28 22:10:23 -05:00
parent cb845ebff5
commit 444db4c242
2 changed files with 1 additions and 6 deletions

View File

@ -65,7 +65,7 @@ func (blockExec *BlockExecutor) ValidateBlock(s State, block *types.Block) error
}
// ApplyBlock validates the block against the state, executes it against the app,
// fires the relevent events, commits the app, and saves the new state and responses.
// fires the relevant events, commits the app, and saves the new state and responses.
// It's the only function that needs to be called
// from outside this package to process and commit an entire block.
// It takes a blockID to avoid recomputing the parts hash.

View File

@ -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 {