From 60e260b2f149a59865d1c94af4cdd4d6df98b3bd Mon Sep 17 00:00:00 2001 From: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com> Date: Thu, 3 Aug 2023 15:56:11 +0800 Subject: [PATCH] fix: fix block validator `createTraceEnv` (#429) --- core/block_validator.go | 2 +- params/version.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/block_validator.go b/core/block_validator.go index b80c2d1297..dd31b11eac 100644 --- a/core/block_validator.go +++ b/core/block_validator.go @@ -254,7 +254,7 @@ func (v *BlockValidator) createTraceEnv(block *types.Block) (*TraceEnv, error) { return nil, errors.New("validateCircuitRowConsumption: no parent block found") } - statedb, err := v.bc.StateAt(parent.Hash()) + statedb, err := v.bc.StateAt(parent.Root()) if err != nil { return nil, err } diff --git a/params/version.go b/params/version.go index d2405dd7ae..9b91550b10 100644 --- a/params/version.go +++ b/params/version.go @@ -24,7 +24,7 @@ import ( const ( VersionMajor = 4 // Major version component of the current release VersionMinor = 3 // Minor version component of the current release - VersionPatch = 9 // Patch version component of the current release + VersionPatch = 10 // Patch version component of the current release VersionMeta = "sepolia" // Version metadata to append to the version string )