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 | |
parent | fc2e33c594449e38b90bad2bd7b5c50f03b7f69d (diff) | |
download | dexon-65a26e40a886c48031a7936d3cc9bf341e7165f4.tar dexon-65a26e40a886c48031a7936d3cc9bf341e7165f4.tar.gz dexon-65a26e40a886c48031a7936d3cc9bf341e7165f4.tar.bz2 dexon-65a26e40a886c48031a7936d3cc9bf341e7165f4.tar.lz dexon-65a26e40a886c48031a7936d3cc9bf341e7165f4.tar.xz dexon-65a26e40a886c48031a7936d3cc9bf341e7165f4.tar.zst dexon-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')
-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() } |