aboutsummaryrefslogtreecommitdiffstats
path: root/miner
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-05-11 17:36:09 +0800
committerobscuren <geffobscura@gmail.com>2015-05-11 17:39:33 +0800
commit6ecba12650f2d20eded5f4f09fb312d84e81d909 (patch)
tree4d6a6e160deaf11d4bb6296870e11f299b7b9bf0 /miner
parent3c6c89168049fbcffa0a02690c27c324f6f0264d (diff)
downloaddexon-6ecba12650f2d20eded5f4f09fb312d84e81d909.tar
dexon-6ecba12650f2d20eded5f4f09fb312d84e81d909.tar.gz
dexon-6ecba12650f2d20eded5f4f09fb312d84e81d909.tar.bz2
dexon-6ecba12650f2d20eded5f4f09fb312d84e81d909.tar.lz
dexon-6ecba12650f2d20eded5f4f09fb312d84e81d909.tar.xz
dexon-6ecba12650f2d20eded5f4f09fb312d84e81d909.tar.zst
dexon-6ecba12650f2d20eded5f4f09fb312d84e81d909.zip
miner: added log message for mining operation. #912
Diffstat (limited to 'miner')
-rw-r--r--miner/miner.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/miner/miner.go b/miner/miner.go
index d5ea9a146..efe6d3051 100644
--- a/miner/miner.go
+++ b/miner/miner.go
@@ -7,6 +7,8 @@ import (
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/core/state"
"github.com/ethereum/go-ethereum/core/types"
+ "github.com/ethereum/go-ethereum/logger"
+ "github.com/ethereum/go-ethereum/logger/glog"
"github.com/ethereum/go-ethereum/pow"
)
@@ -47,6 +49,8 @@ func (m *Miner) SetGasPrice(price *big.Int) {
}
func (self *Miner) Start(coinbase common.Address) {
+ glog.V(logger.Info).Infoln("Starting mining operation")
+
self.mining = true
self.worker.coinbase = coinbase
self.worker.start()