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
ca9c576e
Unverified
Commit
ca9c576e
authored
May 03, 2021
by
aaronbuchwald
Committed by
GitHub
May 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core/vm: fix interpreter comments (#22797)
* Fix interpreter comment * Fix comment
parent
0e00ee42
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
interpreter.go
core/vm/interpreter.go
+2
-2
No files found.
core/vm/interpreter.go
View file @
ca9c576e
...
...
@@ -144,7 +144,7 @@ func (in *EVMInterpreter) Run(contract *Contract, input []byte, readOnly bool) (
defer
func
()
{
in
.
evm
.
depth
--
}()
// Make sure the readOnly is only set if we aren't in readOnly yet.
// This
makes also
sure that the readOnly flag isn't removed for child calls.
// This
also makes
sure that the readOnly flag isn't removed for child calls.
if
readOnly
&&
!
in
.
readOnly
{
in
.
readOnly
=
true
defer
func
()
{
in
.
readOnly
=
false
}()
...
...
@@ -226,7 +226,7 @@ func (in *EVMInterpreter) Run(contract *Contract, input []byte, readOnly bool) (
}
else
if
sLen
>
operation
.
maxStack
{
return
nil
,
&
ErrStackOverflow
{
stackLen
:
sLen
,
limit
:
operation
.
maxStack
}
}
// If the operation is valid, enforce
and
write restrictions
// If the operation is valid, enforce write restrictions
if
in
.
readOnly
&&
in
.
evm
.
chainRules
.
IsByzantium
{
// If the interpreter is operating in readonly mode, make sure no
// state-modifying operation is performed. The 3rd stack item
...
...
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