forked from cerc-io/plugeth
miner: added log message for mining operation. #912
This commit is contained in:
parent
3c6c891680
commit
6ecba12650
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user