Skip to content

Commit

Permalink
les: extend error message for coinbase API calls (#19380)
Browse files Browse the repository at this point in the history
  • Loading branch information
zsfelfoldi authored and karalabe committed Apr 3, 2019
1 parent 0b4fe8d commit 5164274
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions les/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,12 @@ type LightDummyAPI struct{}

// Etherbase is the address that mining rewards will be send to
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)
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
Expand Down

0 comments on commit 5164274

Please sign in to comment.