fix(tracing): disable storage for block_traces (#684)

* fix: disable storage for block_traces

* bump version
This commit is contained in:
HAOYUatHZ 2024-03-28 16:00:02 +08:00 committed by GitHub
parent 5faeeaaf62
commit 054bbd29f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 1 deletions

View file

@ -84,6 +84,7 @@ func (api *API) createTraceEnvAndGetBlockTrace(ctx context.Context, config *Trac
if config == nil {
config = &TraceConfig{
LogConfig: &vm.LogConfig{
DisableStorage: true,
EnableMemory: false,
EnableReturnData: true,
},

View file

@ -24,7 +24,7 @@ import (
const (
VersionMajor = 5 // Major version component of the current release
VersionMinor = 1 // Minor version component of the current release
VersionPatch = 29 // Patch version component of the current release
VersionPatch = 30 // Patch version component of the current release
VersionMeta = "mainnet" // Version metadata to append to the version string
)

View file

@ -141,6 +141,7 @@ func CreateTraceEnv(chainConfig *params.ChainConfig, chainContext core.ChainCont
env := CreateTraceEnvHelper(
chainConfig,
&vm.LogConfig{
DisableStorage: true,
EnableMemory: false,
EnableReturnData: true,
},