@@ -52,17 +52,17 @@ func NewPublicEthereumAPI(e *Ethereum) *PublicEthereumAPI {
5252 return & PublicEthereumAPI {e }
5353}
5454
55- // Etherbase is the address that mining rewards will be send to
55+ // Etherbase is the address that mining rewards will be send to.
5656func (api * PublicEthereumAPI ) Etherbase () (common.Address , error ) {
5757 return api .e .Etherbase ()
5858}
5959
60- // Coinbase is the address that mining rewards will be send to (alias for Etherbase)
60+ // Coinbase is the address that mining rewards will be send to (alias for Etherbase).
6161func (api * PublicEthereumAPI ) Coinbase () (common.Address , error ) {
6262 return api .Etherbase ()
6363}
6464
65- // Hashrate returns the POW hashrate
65+ // Hashrate returns the POW hashrate.
6666func (api * PublicEthereumAPI ) Hashrate () hexutil.Uint64 {
6767 return hexutil .Uint64 (api .e .Miner ().Hashrate ())
6868}
@@ -136,7 +136,7 @@ func (api *PrivateMinerAPI) SetGasLimit(gasLimit hexutil.Uint64) bool {
136136 return true
137137}
138138
139- // SetEtherbase sets the etherbase of the miner
139+ // SetEtherbase sets the etherbase of the miner.
140140func (api * PrivateMinerAPI ) SetEtherbase (etherbase common.Address ) bool {
141141 api .e .SetEtherbase (etherbase )
142142 return true
@@ -160,7 +160,7 @@ func NewPrivateAdminAPI(eth *Ethereum) *PrivateAdminAPI {
160160}
161161
162162// ExportChain exports the current blockchain into a local file,
163- // or a range of blocks if first and last are non-nil
163+ // or a range of blocks if first and last are non-nil.
164164func (api * PrivateAdminAPI ) ExportChain (file string , first * uint64 , last * uint64 ) (bool , error ) {
165165 if first == nil && last != nil {
166166 return false , errors .New ("last cannot be specified without first" )
@@ -328,7 +328,7 @@ type BadBlockArgs struct {
328328}
329329
330330// GetBadBlocks returns a list of the last 'bad blocks' that the client has seen on the network
331- // and returns them as a JSON list of block- hashes
331+ // and returns them as a JSON list of block hashes.
332332func (api * PrivateDebugAPI ) GetBadBlocks (ctx context.Context ) ([]* BadBlockArgs , error ) {
333333 var (
334334 err error
0 commit comments