Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
97f308a9
Unverified
Commit
97f308a9
authored
May 12, 2022
by
Martin Holst Swende
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core/vm: for tracing, do not report post-op memory
parent
440c9fcf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
interpreter.go
core/vm/interpreter.go
+6
-2
No files found.
core/vm/interpreter.go
View file @
97f308a9
...
@@ -223,11 +223,15 @@ func (in *EVMInterpreter) Run(contract *Contract, input []byte, readOnly bool) (
...
@@ -223,11 +223,15 @@ func (in *EVMInterpreter) Run(contract *Contract, input []byte, readOnly bool) (
if
err
!=
nil
||
!
contract
.
UseGas
(
dynamicCost
)
{
if
err
!=
nil
||
!
contract
.
UseGas
(
dynamicCost
)
{
return
nil
,
ErrOutOfGas
return
nil
,
ErrOutOfGas
}
}
// Do tracing before memory expansion
if
in
.
cfg
.
Debug
{
in
.
cfg
.
Tracer
.
CaptureState
(
pc
,
op
,
gasCopy
,
cost
,
callContext
,
in
.
returnData
,
in
.
evm
.
depth
,
err
)
logged
=
true
}
if
memorySize
>
0
{
if
memorySize
>
0
{
mem
.
Resize
(
memorySize
)
mem
.
Resize
(
memorySize
)
}
}
}
}
else
if
in
.
cfg
.
Debug
{
if
in
.
cfg
.
Debug
{
in
.
cfg
.
Tracer
.
CaptureState
(
pc
,
op
,
gasCopy
,
cost
,
callContext
,
in
.
returnData
,
in
.
evm
.
depth
,
err
)
in
.
cfg
.
Tracer
.
CaptureState
(
pc
,
op
,
gasCopy
,
cost
,
callContext
,
in
.
returnData
,
in
.
evm
.
depth
,
err
)
logged
=
true
logged
=
true
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment