aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-09 17:49:14 +0800
committerobscuren <geffobscura@gmail.com>2015-04-09 17:49:14 +0800
commit8d059e54f1cac3cb7a44d9eb62336c514156b8d3 (patch)
treeabf6e10886b4a9bd6d86d99e5a18ffd562ebfbb8
parenta9959805e572ec438bf31ea97cb4a52e0e9715e9 (diff)
downloaddexon-8d059e54f1cac3cb7a44d9eb62336c514156b8d3.tar.gz
dexon-8d059e54f1cac3cb7a44d9eb62336c514156b8d3.tar.zst
dexon-8d059e54f1cac3cb7a44d9eb62336c514156b8d3.zip
Updated xeth logger
-rw-r--r--cmd/mist/assets/examples/coin.html2
-rw-r--r--xeth/xeth.go6
2 files changed, 4 insertions, 4 deletions
diff --git a/cmd/mist/assets/examples/coin.html b/cmd/mist/assets/examples/coin.html
index 257a19977..e78f2d73f 100644
--- a/cmd/mist/assets/examples/coin.html
+++ b/cmd/mist/assets/examples/coin.html
@@ -87,7 +87,7 @@
window.filter = filter;
function refresh() {
- document.querySelector("#balance").innerHTML = contract.call({from:eth.coinbase}).balance(eth.coinbase);
+ document.querySelector("#balance").innerHTML = contract.balance(eth.coinbase);
}
function transact() {
diff --git a/xeth/xeth.go b/xeth/xeth.go
index 407fe69d5..c1a2ec283 100644
--- a/xeth/xeth.go
+++ b/xeth/xeth.go
@@ -18,12 +18,12 @@ import (
"github.com/ethereum/go-ethereum/eth"
"github.com/ethereum/go-ethereum/event/filter"
"github.com/ethereum/go-ethereum/logger"
+ "github.com/ethereum/go-ethereum/logger/glog"
"github.com/ethereum/go-ethereum/miner"
"github.com/ethereum/go-ethereum/rlp"
)
var (
- pipelogger = logger.NewLogger("XETH")
filterTickerTime = 5 * time.Minute
defaultGasPrice = big.NewInt(10000000000000) //150000000000
defaultGas = big.NewInt(90000) //500000
@@ -218,7 +218,7 @@ func (self *XEth) EthTransactionByHash(hash string) (tx *types.Transaction, blha
blnum = big.NewInt(int64(txExtra.BlockIndex))
txi = txExtra.Index
} else {
- pipelogger.Errorln(err)
+ glog.V(logger.Error).Infoln(err)
}
return
@@ -676,7 +676,7 @@ func (self *XEth) Transact(fromStr, toStr, valueStr, gasStr, gasPriceStr, codeSt
if contractCreation {
addr := core.AddressFromMessage(tx)
- pipelogger.Infof("Contract addr %x\n", addr)
+ glog.V(logger.Info).Infof("Contract addr %x\n", addr)
return core.AddressFromMessage(tx).Hex(), nil
}