aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/vm.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-02-24 20:50:52 +0800
committerobscuren <geffobscura@gmail.com>2014-02-24 20:50:52 +0800
commit0afdedb01a8e4203129175dc9dcc213a55906a66 (patch)
treeb21889533c19f3a01d26bcde5bb30f55ba9c108d /ethchain/vm.go
parent6c7255cde2afdff7710af23c9830835398e6b43d (diff)
downloaddexon-0afdedb01a8e4203129175dc9dcc213a55906a66.tar
dexon-0afdedb01a8e4203129175dc9dcc213a55906a66.tar.gz
dexon-0afdedb01a8e4203129175dc9dcc213a55906a66.tar.bz2
dexon-0afdedb01a8e4203129175dc9dcc213a55906a66.tar.lz
dexon-0afdedb01a8e4203129175dc9dcc213a55906a66.tar.xz
dexon-0afdedb01a8e4203129175dc9dcc213a55906a66.tar.zst
dexon-0afdedb01a8e4203129175dc9dcc213a55906a66.zip
Some log statements changed to the default logger
Diffstat (limited to 'ethchain/vm.go')
-rw-r--r--ethchain/vm.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/ethchain/vm.go b/ethchain/vm.go
index 9abd9cd41..c7a91a9c5 100644
--- a/ethchain/vm.go
+++ b/ethchain/vm.go
@@ -48,7 +48,7 @@ func (vm *Vm) Process(contract *Contract, state *State, vars RuntimeVars) {
Pow256 := ethutil.BigPow(2, 256)
if ethutil.Config.Debug {
- fmt.Printf("# op\n")
+ ethutil.Config.Log.Debugf("# op\n")
}
stepcount := 0
@@ -98,7 +98,7 @@ out:
totalFee.Add(totalFee, tf)
if ethutil.Config.Debug {
- fmt.Printf("%-3d %-4s", pc, op.String())
+ ethutil.Config.Log.Debugf("%-3d %-4s", pc, op.String())
}
switch op {
@@ -385,12 +385,12 @@ out:
// Delete the contract
state.trie.Update(string(addr), "")
- fmt.Printf("(%d) => %x\n", deletedMemory, recAddr)
+ ethutil.Config.Log.Debugf("(%d) => %x\n", deletedMemory, recAddr)
break out
default:
fmt.Printf("Invalid OPCODE: %x\n", op)
}
- fmt.Println("")
+ ethutil.Config.Log.Debugln("")
//vm.stack.Print()
pc++
}
@@ -399,7 +399,7 @@ out:
}
func makeInlineTx(addr []byte, value, from, length *big.Int, contract *Contract, state *State) {
- fmt.Printf(" => creating inline tx %x %v %v %v", addr, value, from, length)
+ ethutil.Config.Log.Debugf(" => creating inline tx %x %v %v %v", addr, value, from, length)
j := 0
dataItems := make([]string, int(length.Uint64()))
for i := from.Uint64(); i < length.Uint64(); i++ {