diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-07-04 18:40:23 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-07-04 18:40:23 +0800 |
commit | 9bb575be7db85f967771018a915fbc4e80345ee2 (patch) | |
tree | e9af69218da8c63cea625131432d257f5dc56a9b /eth/backend.go | |
parent | 6f69b4d61f1278ea2d9351667512a1202403eaff (diff) | |
parent | 1959346793bdee469f68841843dd383cf801aba1 (diff) | |
download | go-tangerine-9bb575be7db85f967771018a915fbc4e80345ee2.tar.gz go-tangerine-9bb575be7db85f967771018a915fbc4e80345ee2.tar.zst go-tangerine-9bb575be7db85f967771018a915fbc4e80345ee2.zip |
Merge pull request #1283 from ethersphere/frontier/accounts
Account management improvements
Diffstat (limited to 'eth/backend.go')
-rw-r--r-- | eth/backend.go | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/eth/backend.go b/eth/backend.go index 618eec9fb..e62252b6c 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -464,17 +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{}) { - primary, err := s.accountManager.Primary() - if err != nil { - return eb, err - } - if (primary == common.Address{}) { - err = fmt.Errorf("no accounts found") - return eb, err - } - eb = primary + err = fmt.Errorf("etherbase address must be explicitly specified") } - return eb, nil + return } func (s *Ethereum) StopMining() { s.miner.Stop() } |