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
d37f9876
Commit
d37f9876
authored
Jan 16, 2019
by
Paweł Bylica
Committed by
Guillaume Ballet
Jan 16, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/evm: Add --vm.evm flag to support EVMC (#18457)
parent
f50d66f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
main.go
cmd/evm/main.go
+6
-0
runner.go
cmd/evm/runner.go
+3
-2
No files found.
cmd/evm/main.go
View file @
d37f9876
...
...
@@ -110,6 +110,11 @@ var (
Name
:
"nostack"
,
Usage
:
"disable stack output"
,
}
EVMInterpreterFlag
=
cli
.
StringFlag
{
Name
:
"vm.evm"
,
Usage
:
"External EVM configuration (default = built-in interpreter)"
,
Value
:
""
,
}
)
func
init
()
{
...
...
@@ -133,6 +138,7 @@ func init() {
ReceiverFlag
,
DisableMemoryFlag
,
DisableStackFlag
,
EVMInterpreterFlag
,
}
app
.
Commands
=
[]
cli
.
Command
{
compileCommand
,
...
...
cmd/evm/runner.go
View file @
d37f9876
...
...
@@ -171,8 +171,9 @@ func runCmd(ctx *cli.Context) error {
Coinbase
:
genesisConfig
.
Coinbase
,
BlockNumber
:
new
(
big
.
Int
)
.
SetUint64
(
genesisConfig
.
Number
),
EVMConfig
:
vm
.
Config
{
Tracer
:
tracer
,
Debug
:
ctx
.
GlobalBool
(
DebugFlag
.
Name
)
||
ctx
.
GlobalBool
(
MachineFlag
.
Name
),
Tracer
:
tracer
,
Debug
:
ctx
.
GlobalBool
(
DebugFlag
.
Name
)
||
ctx
.
GlobalBool
(
MachineFlag
.
Name
),
EVMInterpreter
:
ctx
.
GlobalString
(
EVMInterpreterFlag
.
Name
),
},
}
...
...
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