fix: fix block validator createTraceEnv (#429)

This commit is contained in:
HAOYUatHZ 2023-08-03 15:56:11 +08:00 committed by GitHub
parent b51736fd3c
commit 60e260b2f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -254,7 +254,7 @@ func (v *BlockValidator) createTraceEnv(block *types.Block) (*TraceEnv, error) {
return nil, errors.New("validateCircuitRowConsumption: no parent block found") 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 { if err != nil {
return nil, err return nil, err
} }

View file

@ -24,7 +24,7 @@ import (
const ( const (
VersionMajor = 4 // Major version component of the current release VersionMajor = 4 // Major version component of the current release
VersionMinor = 3 // Minor 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 VersionMeta = "sepolia" // Version metadata to append to the version string
) )