From 5164274872a4b3cca2c2f0ce77ae44c39c663402 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felf=C3=B6ldi=20Zsolt?= Date: Wed, 3 Apr 2019 09:15:15 +0200 Subject: [PATCH] les: extend error message for coinbase API calls (#19380) --- les/backend.go | 4 ++-- 1 file 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