@@ -52,17 +52,17 @@ func NewPublicEthereumAPI(e *Ethereum) *PublicEthereumAPI {
52
52
return & PublicEthereumAPI {e }
53
53
}
54
54
55
- // Etherbase is the address that mining rewards will be send to
55
+ // Etherbase is the address that mining rewards will be send to.
56
56
func (api * PublicEthereumAPI ) Etherbase () (common.Address , error ) {
57
57
return api .e .Etherbase ()
58
58
}
59
59
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).
61
61
func (api * PublicEthereumAPI ) Coinbase () (common.Address , error ) {
62
62
return api .Etherbase ()
63
63
}
64
64
65
- // Hashrate returns the POW hashrate
65
+ // Hashrate returns the POW hashrate.
66
66
func (api * PublicEthereumAPI ) Hashrate () hexutil.Uint64 {
67
67
return hexutil .Uint64 (api .e .Miner ().Hashrate ())
68
68
}
@@ -136,7 +136,7 @@ func (api *PrivateMinerAPI) SetGasLimit(gasLimit hexutil.Uint64) bool {
136
136
return true
137
137
}
138
138
139
- // SetEtherbase sets the etherbase of the miner
139
+ // SetEtherbase sets the etherbase of the miner.
140
140
func (api * PrivateMinerAPI ) SetEtherbase (etherbase common.Address ) bool {
141
141
api .e .SetEtherbase (etherbase )
142
142
return true
@@ -160,7 +160,7 @@ func NewPrivateAdminAPI(eth *Ethereum) *PrivateAdminAPI {
160
160
}
161
161
162
162
// 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.
164
164
func (api * PrivateAdminAPI ) ExportChain (file string , first * uint64 , last * uint64 ) (bool , error ) {
165
165
if first == nil && last != nil {
166
166
return false , errors .New ("last cannot be specified without first" )
@@ -328,7 +328,7 @@ type BadBlockArgs struct {
328
328
}
329
329
330
330
// 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.
332
332
func (api * PrivateDebugAPI ) GetBadBlocks (ctx context.Context ) ([]* BadBlockArgs , error ) {
333
333
var (
334
334
err error
0 commit comments