diff options
author | kiel barry <kiel.j.barry@gmail.com> | 2018-05-03 20:15:33 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-05-03 20:15:33 +0800 |
commit | 5b3af4c3d1455bc3e4a1c4aa514423683c8aaf7b (patch) | |
tree | f7615b921cfb86a68ae57dc2034595ca5c3927e6 /eth/backend.go | |
parent | 60b433ab84589c2a33553575677bfa61ae3d1078 (diff) | |
download | dexon-5b3af4c3d1455bc3e4a1c4aa514423683c8aaf7b.tar dexon-5b3af4c3d1455bc3e4a1c4aa514423683c8aaf7b.tar.gz dexon-5b3af4c3d1455bc3e4a1c4aa514423683c8aaf7b.tar.bz2 dexon-5b3af4c3d1455bc3e4a1c4aa514423683c8aaf7b.tar.lz dexon-5b3af4c3d1455bc3e4a1c4aa514423683c8aaf7b.tar.xz dexon-5b3af4c3d1455bc3e4a1c4aa514423683c8aaf7b.tar.zst dexon-5b3af4c3d1455bc3e4a1c4aa514423683c8aaf7b.zip |
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
Diffstat (limited to 'eth/backend.go')
-rw-r--r-- | eth/backend.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/eth/backend.go b/eth/backend.go index ffd5d8542..a26ccd044 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -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 { |