diff options
author | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-04-07 18:48:13 +0800 |
---|---|---|
committer | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-04-07 18:48:19 +0800 |
commit | 2591883a18113f1b60e6057313ff552c92d7f261 (patch) | |
tree | 71aa559030cb2792e4646715c15a23744dc471dd /core | |
parent | 3f306f63d48f011a527e301e3bf9aec2d6efb7e1 (diff) | |
download | dexon-2591883a18113f1b60e6057313ff552c92d7f261.tar dexon-2591883a18113f1b60e6057313ff552c92d7f261.tar.gz dexon-2591883a18113f1b60e6057313ff552c92d7f261.tar.bz2 dexon-2591883a18113f1b60e6057313ff552c92d7f261.tar.lz dexon-2591883a18113f1b60e6057313ff552c92d7f261.tar.xz dexon-2591883a18113f1b60e6057313ff552c92d7f261.tar.zst dexon-2591883a18113f1b60e6057313ff552c92d7f261.zip |
Use logger.Error instead of 0 with glog
Diffstat (limited to 'core')
-rw-r--r-- | core/types/transaction.go | 3 | ||||
-rw-r--r-- | core/vm/address.go | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/core/types/transaction.go b/core/types/transaction.go index 2f23a7960..6646bdf29 100644 --- a/core/types/transaction.go +++ b/core/types/transaction.go @@ -9,6 +9,7 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/crypto/secp256k1" + "github.com/ethereum/go-ethereum/logger" "github.com/ethereum/go-ethereum/logger/glog" "github.com/ethereum/go-ethereum/rlp" ) @@ -132,7 +133,7 @@ func (tx *Transaction) PublicKey() []byte { //pubkey, _ := secp256k1.RecoverPubkey(hash[:], sig) p, err := crypto.SigToPub(hash[:], sig) if err != nil { - glog.V(0).Infof("Could not get pubkey from signature: ", err) + glog.V(logger.Error).Infof("Could not get pubkey from signature: ", err) return nil } pubkey := crypto.FromECDSAPub(p) diff --git a/core/vm/address.go b/core/vm/address.go index c6db1d5ff..742017dd2 100644 --- a/core/vm/address.go +++ b/core/vm/address.go @@ -5,6 +5,7 @@ import ( "github.com/ethereum/go-ethereum/common" "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" ) @@ -84,7 +85,7 @@ func ecrecoverFunc(in []byte) []byte { pubKey, err := crypto.Ecrecover(in[:32], rsv) // make sure the public key is a valid one if err != nil { - glog.V(0).Infof("EC RECOVER FAIL: ", err) + glog.V(logger.Error).Infof("EC RECOVER FAIL: ", err) return nil } |