aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm/environment.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-06-10 23:40:13 +0800
committerobscuren <geffobscura@gmail.com>2015-06-10 23:47:36 +0800
commit065aff9ffa2bee1008d1f406328dd12a073cb239 (patch)
tree68819c3e058c2aa91640ebd39391977e27ef0158 /core/vm/environment.go
parentf249ccaa89afa3340c3abd8578516b648e633e96 (diff)
downloadgo-tangerine-065aff9ffa2bee1008d1f406328dd12a073cb239.tar.gz
go-tangerine-065aff9ffa2bee1008d1f406328dd12a073cb239.tar.zst
go-tangerine-065aff9ffa2bee1008d1f406328dd12a073cb239.zip
core/vm: documentation and name changes
Diffstat (limited to 'core/vm/environment.go')
-rw-r--r--core/vm/environment.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/vm/environment.go b/core/vm/environment.go
index 25bd2515e..e61676409 100644
--- a/core/vm/environment.go
+++ b/core/vm/environment.go
@@ -8,6 +8,8 @@ import (
"github.com/ethereum/go-ethereum/core/state"
)
+// Environment is is required by the virtual machine to get information from
+// it's own isolated environment. For an example see `core.VMEnv`
type Environment interface {
State() *state.StateDB
@@ -33,6 +35,8 @@ type Environment interface {
Create(me ContextRef, data []byte, gas, price, value *big.Int) ([]byte, error, ContextRef)
}
+// StructLog is emited to the Environment each cycle and lists information about the curent internal state
+// prior to the execution of the statement.
type StructLog struct {
Pc uint64
Op OpCode