Revert "les, eth: fix typo in comment (#27369)"

This reverts commit c56e60b850.
This commit is contained in:
devopsbo3 2023-11-10 12:27:53 -06:00 committed by GitHub
parent 7410a9c069
commit 92b2c568c2
2 changed files with 4 additions and 4 deletions

View file

@ -31,12 +31,12 @@ func NewEthereumAPI(e *Ethereum) *EthereumAPI {
return &EthereumAPI{e} return &EthereumAPI{e}
} }
// Etherbase is the address that mining rewards will be sent to. // Etherbase is the address that mining rewards will be send to.
func (api *EthereumAPI) Etherbase() (common.Address, error) { func (api *EthereumAPI) Etherbase() (common.Address, error) {
return api.e.Etherbase() return api.e.Etherbase()
} }
// Coinbase is the address that mining rewards will be sent to (alias for Etherbase). // Coinbase is the address that mining rewards will be send to (alias for Etherbase).
func (api *EthereumAPI) Coinbase() (common.Address, error) { func (api *EthereumAPI) Coinbase() (common.Address, error) {
return api.Etherbase() return api.Etherbase()
} }

View file

@ -266,12 +266,12 @@ func (s *LightEthereum) prenegQuery(n *enode.Node) int {
type LightDummyAPI struct{} type LightDummyAPI struct{}
// Etherbase is the address that mining rewards will be sent to // Etherbase is the address that mining rewards will be send to
func (s *LightDummyAPI) Etherbase() (common.Address, error) { func (s *LightDummyAPI) Etherbase() (common.Address, error) {
return common.Address{}, errors.New("mining is not supported in light mode") return common.Address{}, errors.New("mining is not supported in light mode")
} }
// Coinbase is the address that mining rewards will be sent to (alias for Etherbase) // Coinbase is the address that mining rewards will be send to (alias for Etherbase)
func (s *LightDummyAPI) Coinbase() (common.Address, error) { func (s *LightDummyAPI) Coinbase() (common.Address, error) {
return common.Address{}, errors.New("mining is not supported in light mode") return common.Address{}, errors.New("mining is not supported in light mode")
} }