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
d763e20d
Unverified
Commit
d763e20d
authored
Mar 27, 2018
by
Péter Szilágyi
Committed by
GitHub
Mar 27, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16394 from hydai/fix_typo
core/vm: Fixed typos in core/vm/interpreter.go
parents
85ea9159
61349907
Changes
1
Hide 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 @
d763e20d
...
...
@@ -42,7 +42,7 @@ type Config struct {
}
// Interpreter is used to run Ethereum based contracts and will utilise the
// passed e
vm
ironment to query external sources for state information.
// passed e
nv
ironment to query external sources for state information.
// The Interpreter will run the byte code VM based on the passed
// configuration.
type
Interpreter
struct
{
...
...
@@ -184,7 +184,7 @@ func (in *Interpreter) Run(contract *Contract, input []byte) (ret []byte, err er
}
}
// consume the gas and return an error if not enough gas is available.
// cost is explicitly set so that the capture state defer method ca
s
get the proper cost
// cost is explicitly set so that the capture state defer method ca
n
get the proper cost
cost
,
err
=
operation
.
gasCost
(
in
.
gasTable
,
in
.
evm
,
contract
,
stack
,
mem
,
memorySize
)
if
err
!=
nil
||
!
contract
.
UseGas
(
cost
)
{
return
nil
,
ErrOutOfGas
...
...
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