From 444db4c24294123784b84984b34634bd42caa9a6 Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Thu, 28 Dec 2017 22:10:23 -0500 Subject: [PATCH] metalinter --- state/execution.go | 2 +- state/validation.go | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/state/execution.go b/state/execution.go index 847ac131..4ccf87d4 100644 --- a/state/execution.go +++ b/state/execution.go @@ -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. diff --git a/state/validation.go b/state/validation.go index dfca78ac..fb3e8d13 100644 --- a/state/validation.go +++ b/state/validation.go @@ -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 {