diff options
author | zelig <viktor.tron@gmail.com> | 2015-06-17 18:25:42 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2015-07-03 06:28:12 +0800 |
commit | 65a26e40a886c48031a7936d3cc9bf341e7165f4 (patch) | |
tree | 9769a649117317a1a8deb1b3f38ad6a4f5c73db4 /eth/backend.go | |
parent | fc2e33c594449e38b90bad2bd7b5c50f03b7f69d (diff) | |
download | go-tangerine-65a26e40a886c48031a7936d3cc9bf341e7165f4.tar go-tangerine-65a26e40a886c48031a7936d3cc9bf341e7165f4.tar.gz go-tangerine-65a26e40a886c48031a7936d3cc9bf341e7165f4.tar.bz2 go-tangerine-65a26e40a886c48031a7936d3cc9bf341e7165f4.tar.lz go-tangerine-65a26e40a886c48031a7936d3cc9bf341e7165f4.tar.xz go-tangerine-65a26e40a886c48031a7936d3cc9bf341e7165f4.tar.zst go-tangerine-65a26e40a886c48031a7936d3cc9bf341e7165f4.zip |
require explicit etherbase address for mining. Falling back to primary is risky given it is inconsistent if keys are imported/merged/created or copied/transfered
Diffstat (limited to 'eth/backend.go')
-rw-r--r-- | eth/backend.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/eth/backend.go b/eth/backend.go index ce774ba1b..8195110de 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -464,10 +464,9 @@ func (s *Ethereum) StartMining(threads int) error { func (s *Ethereum) Etherbase() (eb common.Address, err error) { eb = s.etherbase if (eb == common.Address{}) { - err = fmt.Errorf("no accounts found") - return eb, err + err = fmt.Errorf("etherbase address must be explicitly specified") } - return eb, nil + return } func (s *Ethereum) StopMining() { s.miner.Stop() } |