aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelföldi Zsolt <zsfelfoldi@gmail.com>2019-04-03 15:15:15 +0800
committerPéter Szilágyi <peterke@gmail.com>2019-04-03 15:15:15 +0800
commit5164274872a4b3cca2c2f0ce77ae44c39c663402 (patch)
tree18f336229fddf6a207fb5c470b62746be50f8253
parent0b4fe8d1929ad64ed576f7560dde4179d71ecfcb (diff)
downloadgo-tangerine-5164274872a4b3cca2c2f0ce77ae44c39c663402.tar
go-tangerine-5164274872a4b3cca2c2f0ce77ae44c39c663402.tar.gz
go-tangerine-5164274872a4b3cca2c2f0ce77ae44c39c663402.tar.bz2
go-tangerine-5164274872a4b3cca2c2f0ce77ae44c39c663402.tar.lz
go-tangerine-5164274872a4b3cca2c2f0ce77ae44c39c663402.tar.xz
go-tangerine-5164274872a4b3cca2c2f0ce77ae44c39c663402.tar.zst
go-tangerine-5164274872a4b3cca2c2f0ce77ae44c39c663402.zip
les: extend error message for coinbase API calls (#19380)
-rw-r--r--les/backend.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/les/backend.go b/les/backend.go
index bc4d0f21d..f0f8a6a6e 100644
--- a/les/backend.go
+++ b/les/backend.go
@@ -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