aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm/vm.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-06-10 23:45:21 +0800
committerobscuren <geffobscura@gmail.com>2015-06-10 23:47:36 +0800
commitfc2a061d510fbe09534ee1ade167d66c40ba7bf1 (patch)
tree39f3234c4a88ad3457c997ad2ca58a7296426a39 /core/vm/vm.go
parent065aff9ffa2bee1008d1f406328dd12a073cb239 (diff)
downloadgo-tangerine-fc2a061d510fbe09534ee1ade167d66c40ba7bf1.tar.gz
go-tangerine-fc2a061d510fbe09534ee1ade167d66c40ba7bf1.tar.zst
go-tangerine-fc2a061d510fbe09534ee1ade167d66c40ba7bf1.zip
core/vm: unexported stack again. No longer required
Diffstat (limited to 'core/vm/vm.go')
-rw-r--r--core/vm/vm.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/vm/vm.go b/core/vm/vm.go
index bf8bbcdc2..fe380d79d 100644
--- a/core/vm/vm.go
+++ b/core/vm/vm.go
@@ -75,7 +75,7 @@ func (self *Vm) Run(context *Context, input []byte) (ret []byte, err error) {
op OpCode // current opcode
codehash = crypto.Sha3Hash(code) // codehash is used when doing jump dest caching
mem = NewMemory() // bound memory
- stack = newStack() // local stack
+ stack = newstack() // local stack
pc = uint64(0) // program counter
statedb = self.env.State() // current state
@@ -632,7 +632,7 @@ func (self *Vm) Run(context *Context, input []byte) (ret []byte, err error) {
// calculateGasAndSize calculates the required given the opcode and stack items calculates the new memorysize for
// the operation. This does not reduce gas or resizes the memory.
-func (self *Vm) calculateGasAndSize(context *Context, caller ContextRef, op OpCode, statedb *state.StateDB, mem *Memory, stack *Stack) (*big.Int, *big.Int, error) {
+func (self *Vm) calculateGasAndSize(context *Context, caller ContextRef, op OpCode, statedb *state.StateDB, mem *Memory, stack *stack) (*big.Int, *big.Int, error) {
var (
gas = new(big.Int)
newMemSize *big.Int = new(big.Int)
@@ -789,7 +789,7 @@ func (self *Vm) RunPrecompiled(p *PrecompiledAccount, input []byte, context *Con
// log emits a log event to the environment for each opcode encountered. This is not to be confused with the
// LOG* opcode.
-func (self *Vm) log(pc uint64, op OpCode, gas *big.Int, memory *Memory, stack *Stack, context *Context) {
+func (self *Vm) log(pc uint64, op OpCode, gas *big.Int, memory *Memory, stack *stack, context *Context) {
if Debug {
mem := make([]byte, len(memory.Data()))
copy(mem, memory.Data())