eth: golint updates for this or self warning (#16632)

* eth/*:golint updates for this or self warning

* eth/*: golint updates for this or self warning, pr updated per feedback
This commit is contained in:
kiel barry
2018-05-03 05:15:33 -07:00
committed by Péter Szilágyi
parent 60b433ab84
commit 5b3af4c3d1
2 changed files with 20 additions and 20 deletions

View File

@ -325,13 +325,13 @@ func (s *Ethereum) Etherbase() (eb common.Address, err error) {
return common.Address{}, fmt.Errorf("etherbase must be explicitly specified")
}
// set in js console via admin interface or wrapper from cli flags
func (self *Ethereum) SetEtherbase(etherbase common.Address) {
self.lock.Lock()
self.etherbase = etherbase
self.lock.Unlock()
// SetEtherbase sets the mining reward address.
func (s *Ethereum) SetEtherbase(etherbase common.Address) {
s.lock.Lock()
s.etherbase = etherbase
s.lock.Unlock()
self.miner.SetEtherbase(etherbase)
s.miner.SetEtherbase(etherbase)
}
func (s *Ethereum) StartMining(local bool) error {