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
f249ccaa
Commit
f249ccaa
authored
Jun 10, 2015
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/evm: implements vm.Environment
parent
cf3aabb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
main.go
cmd/evm/main.go
+7
-0
No files found.
cmd/evm/main.go
View file @
f249ccaa
...
@@ -104,6 +104,7 @@ type VMEnv struct {
...
@@ -104,6 +104,7 @@ type VMEnv struct {
depth
int
depth
int
Gas
*
big
.
Int
Gas
*
big
.
Int
time
int64
time
int64
logs
[]
vm
.
StructLog
}
}
func
NewEnv
(
state
*
state
.
StateDB
,
transactor
common
.
Address
,
value
*
big
.
Int
)
*
VMEnv
{
func
NewEnv
(
state
*
state
.
StateDB
,
transactor
common
.
Address
,
value
*
big
.
Int
)
*
VMEnv
{
...
@@ -133,6 +134,12 @@ func (self *VMEnv) GetHash(n uint64) common.Hash {
...
@@ -133,6 +134,12 @@ func (self *VMEnv) GetHash(n uint64) common.Hash {
}
}
return
common
.
Hash
{}
return
common
.
Hash
{}
}
}
func
(
self
*
VMEnv
)
AddStructLog
(
log
vm
.
StructLog
)
{
self
.
logs
=
append
(
self
.
logs
,
log
)
}
func
(
self
*
VMEnv
)
StructLogs
()
[]
vm
.
StructLog
{
return
self
.
logs
}
func
(
self
*
VMEnv
)
AddLog
(
log
*
state
.
Log
)
{
func
(
self
*
VMEnv
)
AddLog
(
log
*
state
.
Log
)
{
self
.
state
.
AddLog
(
log
)
self
.
state
.
AddLog
(
log
)
}
}
...
...
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