From 4f457859a2e76bec4a76a7019d5bb480850f8918 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Wed, 13 Mar 2019 12:31:35 +0200 Subject: core: use headers only where blocks are unnecessary --- core/block_validator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/block_validator.go') diff --git a/core/block_validator.go b/core/block_validator.go index 3b9496fec..b36ca56d7 100644 --- a/core/block_validator.go +++ b/core/block_validator.go @@ -77,7 +77,7 @@ func (v *BlockValidator) ValidateBody(block *types.Block) error { // transition, such as amount of used gas, the receipt roots and the state root // itself. ValidateState returns a database batch if the validation was a success // otherwise nil and an error is returned. -func (v *BlockValidator) ValidateState(block, parent *types.Block, statedb *state.StateDB, receipts types.Receipts, usedGas uint64) error { +func (v *BlockValidator) ValidateState(block *types.Block, statedb *state.StateDB, receipts types.Receipts, usedGas uint64) error { header := block.Header() if block.GasUsed() != usedGas { return fmt.Errorf("invalid gas used (remote: %d local: %d)", block.GasUsed(), usedGas) -- cgit v1.2.3