les: changed error message for Coinbase/Etherbase API call

This commit is contained in:
Zsolt Felfoldi 2019-04-03 01:25:05 +02:00
parent 0b4fe8d192
commit a2355110a8

View file

@ -193,12 +193,12 @@ type LightDummyAPI struct{}
// Etherbase is the address that mining rewards will be send to // Etherbase is the address that mining rewards will be send to
func (s *LightDummyAPI) Etherbase() (common.Address, error) { func (s *LightDummyAPI) Etherbase() (common.Address, error) {
return common.Address{}, fmt.Errorf("not supported") return common.Address{}, fmt.Errorf("mining is not supported in light mode")
} }
// Coinbase is the address that mining rewards will be send to (alias for Etherbase) // Coinbase is the address that mining rewards will be send to (alias for Etherbase)
func (s *LightDummyAPI) Coinbase() (common.Address, error) { func (s *LightDummyAPI) Coinbase() (common.Address, error) {
return common.Address{}, fmt.Errorf("not supported") return common.Address{}, fmt.Errorf("mining is not supported in light mode")
} }
// Hashrate returns the POW hashrate // Hashrate returns the POW hashrate