aboutsummaryrefslogtreecommitdiffstats
path: root/core/block_validator.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2019-03-13 18:31:35 +0800
committerPéter Szilágyi <peterke@gmail.com>2019-03-13 18:32:47 +0800
commit4f457859a2e76bec4a76a7019d5bb480850f8918 (patch)
tree7f1924ced19c82837e0cf4fbe40659b16e507fd2 /core/block_validator.go
parentb87a68407bb5beeb0b4d9f074ed08fe21f1dc426 (diff)
downloadgo-tangerine-4f457859a2e76bec4a76a7019d5bb480850f8918.tar
go-tangerine-4f457859a2e76bec4a76a7019d5bb480850f8918.tar.gz
go-tangerine-4f457859a2e76bec4a76a7019d5bb480850f8918.tar.bz2
go-tangerine-4f457859a2e76bec4a76a7019d5bb480850f8918.tar.lz
go-tangerine-4f457859a2e76bec4a76a7019d5bb480850f8918.tar.xz
go-tangerine-4f457859a2e76bec4a76a7019d5bb480850f8918.tar.zst
go-tangerine-4f457859a2e76bec4a76a7019d5bb480850f8918.zip
core: use headers only where blocks are unnecessary
Diffstat (limited to 'core/block_validator.go')
-rw-r--r--core/block_validator.go2
1 files changed, 1 insertions, 1 deletions
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)