les, eth: fix typo in comment (#27369)
This commit is contained in:
parent
d789c68b66
commit
560dceb58e
@ -31,12 +31,12 @@ func NewEthereumAPI(e *Ethereum) *EthereumAPI {
|
|||||||
return &EthereumAPI{e}
|
return &EthereumAPI{e}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Etherbase is the address that mining rewards will be send to.
|
// Etherbase is the address that mining rewards will be sent 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 send to (alias for Etherbase).
|
// Coinbase is the address that mining rewards will be sent to (alias for Etherbase).
|
||||||
func (api *EthereumAPI) Coinbase() (common.Address, error) {
|
func (api *EthereumAPI) Coinbase() (common.Address, error) {
|
||||||
return api.Etherbase()
|
return api.Etherbase()
|
||||||
}
|
}
|
||||||
|
@ -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 send to
|
// Etherbase is the address that mining rewards will be sent 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 send to (alias for Etherbase)
|
// Coinbase is the address that mining rewards will be sent 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")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user