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
3ea0e904
Commit
3ea0e904
authored
Oct 18, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reflect changed to eth/vm
parent
20c742e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
vm.go
tests/helper/vm.go
+3
-3
gh_test.go
tests/vm/gh_test.go
+1
-1
No files found.
tests/helper/vm.go
View file @
3ea0e904
...
@@ -5,7 +5,7 @@ import (
...
@@ -5,7 +5,7 @@ import (
"github.com/ethereum/eth-go/ethstate"
"github.com/ethereum/eth-go/ethstate"
"github.com/ethereum/eth-go/ethutil"
"github.com/ethereum/eth-go/ethutil"
"github.com/ethereum/eth-go/
eth
vm"
"github.com/ethereum/eth-go/vm"
)
)
type
Env
struct
{
type
Env
struct
{
...
@@ -56,9 +56,9 @@ func RunVm(state *ethstate.State, env, exec map[string]string) ([]byte, *big.Int
...
@@ -56,9 +56,9 @@ func RunVm(state *ethstate.State, env, exec map[string]string) ([]byte, *big.Int
caller
:=
state
.
GetOrNewStateObject
(
FromHex
(
exec
[
"caller"
]))
caller
:=
state
.
GetOrNewStateObject
(
FromHex
(
exec
[
"caller"
]))
caller
.
Balance
=
ethutil
.
Big
(
exec
[
"value"
])
caller
.
Balance
=
ethutil
.
Big
(
exec
[
"value"
])
vm
:=
ethvm
.
New
(
NewEnvFromMap
(
state
,
env
,
exec
),
eth
vm
.
DebugVmTy
)
evm
:=
vm
.
New
(
NewEnvFromMap
(
state
,
env
,
exec
),
vm
.
DebugVmTy
)
execution
:=
ethvm
.
NewExecution
(
vm
,
address
,
FromHex
(
exec
[
"data"
]),
ethutil
.
Big
(
exec
[
"gas"
]),
ethutil
.
Big
(
exec
[
"gasPrice"
]),
ethutil
.
Big
(
exec
[
"value"
]))
execution
:=
vm
.
NewExecution
(
e
vm
,
address
,
FromHex
(
exec
[
"data"
]),
ethutil
.
Big
(
exec
[
"gas"
]),
ethutil
.
Big
(
exec
[
"gasPrice"
]),
ethutil
.
Big
(
exec
[
"value"
]))
ret
,
err
:=
execution
.
Exec
(
address
,
caller
)
ret
,
err
:=
execution
.
Exec
(
address
,
caller
)
return
ret
,
execution
.
Gas
,
err
return
ret
,
execution
.
Gas
,
err
...
...
tests/vm/gh_test.go
View file @
3ea0e904
package
eth
vm
package
vm
import
(
import
(
"bytes"
"bytes"
...
...
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