瀏覽代碼

les: extend error message for coinbase API calls (#19380)

Felföldi Zsolt 6 年之前
父節點
當前提交
5164274872
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      les/backend.go

+ 2 - 2
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