From 054bbd29f0b3a6f25f48d6b4bb554dcebcc28449 Mon Sep 17 00:00:00 2001 From: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com> Date: Thu, 28 Mar 2024 16:00:02 +0800 Subject: [PATCH] fix(tracing): disable storage for block_traces (#684) * fix: disable storage for block_traces * bump version --- eth/tracers/api_blocktrace.go | 1 + params/version.go | 2 +- rollup/tracing/tracing.go | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/eth/tracers/api_blocktrace.go b/eth/tracers/api_blocktrace.go index 3fc08e849f3e..1dea2c925c5e 100644 --- a/eth/tracers/api_blocktrace.go +++ b/eth/tracers/api_blocktrace.go @@ -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, }, diff --git a/params/version.go b/params/version.go index 5a5eb099fda4..16d0ed43db2a 100644 --- a/params/version.go +++ b/params/version.go @@ -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 ) diff --git a/rollup/tracing/tracing.go b/rollup/tracing/tracing.go index 9a840d6271cf..2b87024a4490 100644 --- a/rollup/tracing/tracing.go +++ b/rollup/tracing/tracing.go @@ -141,6 +141,7 @@ func CreateTraceEnv(chainConfig *params.ChainConfig, chainContext core.ChainCont env := CreateTraceEnvHelper( chainConfig, &vm.LogConfig{ + DisableStorage: true, EnableMemory: false, EnableReturnData: true, },