aboutsummaryrefslogtreecommitdiffstats
path: root/ethpipe
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-10-31 19:56:05 +0800
committerobscuren <geffobscura@gmail.com>2014-10-31 19:56:05 +0800
commitb1c247231b11f313ca0eedff75ea563926d23f68 (patch)
tree48b2136cb65e69cb79ffac80f3cc3fdf9dba1cc8 /ethpipe
parentfd9da72536b73351bbcdc1e9dbbbb8c0e4bfb21b (diff)
downloadgo-tangerine-b1c247231b11f313ca0eedff75ea563926d23f68.tar.gz
go-tangerine-b1c247231b11f313ca0eedff75ea563926d23f68.tar.zst
go-tangerine-b1c247231b11f313ca0eedff75ea563926d23f68.zip
ethlog => logger
Diffstat (limited to 'ethpipe')
-rw-r--r--ethpipe/js_pipe.go2
-rw-r--r--ethpipe/pipe.go8
2 files changed, 5 insertions, 5 deletions
diff --git a/ethpipe/js_pipe.go b/ethpipe/js_pipe.go
index deb3cf091..eb365f007 100644
--- a/ethpipe/js_pipe.go
+++ b/ethpipe/js_pipe.go
@@ -233,7 +233,7 @@ func (self *JSPipe) Transact(key, toStr, valueStr, gasStr, gasPriceStr, codeStr
self.obj.TxPool().QueueTransaction(tx)
if contractCreation {
- logger.Infof("Contract addr %x", tx.CreationAddress(self.World().State()))
+ pipelogger.Infof("Contract addr %x", tx.CreationAddress(self.World().State()))
}
return NewJSReciept(contractCreation, tx.CreationAddress(self.World().State()), tx.Hash(), keyPair.Address()), nil
diff --git a/ethpipe/pipe.go b/ethpipe/pipe.go
index 7663a1984..f6fee3923 100644
--- a/ethpipe/pipe.go
+++ b/ethpipe/pipe.go
@@ -6,13 +6,13 @@ import (
"github.com/ethereum/go-ethereum/chain"
"github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethlog"
"github.com/ethereum/go-ethereum/ethstate"
"github.com/ethereum/go-ethereum/ethutil"
+ "github.com/ethereum/go-ethereum/logger"
"github.com/ethereum/go-ethereum/vm"
)
-var logger = ethlog.NewLogger("PIPE")
+var pipelogger = logger.NewLogger("PIPE")
type VmVars struct {
State *ethstate.State
@@ -143,7 +143,7 @@ func (self *Pipe) Transact(key *crypto.KeyPair, rec []byte, value, gas, price *e
if contractCreation {
addr := tx.CreationAddress(self.World().State())
- logger.Infof("Contract addr %x\n", addr)
+ pipelogger.Infof("Contract addr %x\n", addr)
return addr, nil
}
@@ -155,7 +155,7 @@ func (self *Pipe) PushTx(tx *chain.Transaction) ([]byte, error) {
self.obj.TxPool().QueueTransaction(tx)
if tx.Recipient == nil {
addr := tx.CreationAddress(self.World().State())
- logger.Infof("Contract addr %x\n", addr)
+ pipelogger.Infof("Contract addr %x\n", addr)
return addr, nil
}
return tx.Hash(), nil