aboutsummaryrefslogtreecommitdiffstats
path: root/core/state_transition.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-04 19:24:01 +0800
committerobscuren <geffobscura@gmail.com>2015-04-04 19:24:01 +0800
commit1889727144008273e9dcd491dce6672126c37652 (patch)
treec97f8939039377e10f695e554667945e36750b9a /core/state_transition.go
parent218bfeb60e9a9e7f0874db18135e7ad633ff83f1 (diff)
downloaddexon-1889727144008273e9dcd491dce6672126c37652.tar.gz
dexon-1889727144008273e9dcd491dce6672126c37652.tar.zst
dexon-1889727144008273e9dcd491dce6672126c37652.zip
Moved logging to logger.Core
Diffstat (limited to 'core/state_transition.go')
-rw-r--r--core/state_transition.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/core/state_transition.go b/core/state_transition.go
index 1994cabf6..e67abb951 100644
--- a/core/state_transition.go
+++ b/core/state_transition.go
@@ -8,6 +8,8 @@ import (
"github.com/ethereum/go-ethereum/core/state"
"github.com/ethereum/go-ethereum/core/vm"
"github.com/ethereum/go-ethereum/crypto"
+ "github.com/ethereum/go-ethereum/logger"
+ "github.com/ethereum/go-ethereum/logger/glog"
"github.com/ethereum/go-ethereum/params"
)
@@ -166,9 +168,6 @@ func (self *StateTransition) preCheck() (err error) {
}
func (self *StateTransition) transitionState() (ret []byte, usedGas *big.Int, err error) {
- // statelogger.Debugf("(~) %x\n", self.msg.Hash())
-
- // XXX Transactions after this point are considered valid.
if err = self.preCheck(); err != nil {
return
}
@@ -207,7 +206,7 @@ func (self *StateTransition) transitionState() (ret []byte, usedGas *big.Int, er
if err := self.UseGas(dataGas); err == nil {
ref.SetCode(ret)
} else {
- statelogger.Infoln("Insufficient gas for creating code. Require", dataGas, "and have", self.gas)
+ glog.V(logger.Core).Infoln("Insufficient gas for creating code. Require", dataGas, "and have", self.gas)
}
}
} else {