mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-11 05:39:03 +00:00
les: extend error message for coinbase API calls (#19380)
This commit is contained in:
parent
0b4fe8d192
commit
5164274872
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue