Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
3273ad1a
Unverified
Commit
3273ad1a
authored
Jun 15, 2022
by
lightclient
Committed by
GitHub
Jun 15, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eth: add missing period at end of sentences (#25058)
eth: add missing periods on end of comments
parent
bc013bc4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
api.go
eth/api.go
+6
-6
api.go
eth/downloader/api.go
+1
-1
No files found.
eth/api.go
View file @
3273ad1a
...
...
@@ -52,17 +52,17 @@ func NewPublicEthereumAPI(e *Ethereum) *PublicEthereumAPI {
return
&
PublicEthereumAPI
{
e
}
}
// Etherbase is the address that mining rewards will be send to
// Etherbase is the address that mining rewards will be send to
.
func
(
api
*
PublicEthereumAPI
)
Etherbase
()
(
common
.
Address
,
error
)
{
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 send to (alias for Etherbase)
.
func
(
api
*
PublicEthereumAPI
)
Coinbase
()
(
common
.
Address
,
error
)
{
return
api
.
Etherbase
()
}
// Hashrate returns the POW hashrate
// Hashrate returns the POW hashrate
.
func
(
api
*
PublicEthereumAPI
)
Hashrate
()
hexutil
.
Uint64
{
return
hexutil
.
Uint64
(
api
.
e
.
Miner
()
.
Hashrate
())
}
...
...
@@ -136,7 +136,7 @@ func (api *PrivateMinerAPI) SetGasLimit(gasLimit hexutil.Uint64) bool {
return
true
}
// SetEtherbase sets the etherbase of the miner
// SetEtherbase sets the etherbase of the miner
.
func
(
api
*
PrivateMinerAPI
)
SetEtherbase
(
etherbase
common
.
Address
)
bool
{
api
.
e
.
SetEtherbase
(
etherbase
)
return
true
...
...
@@ -160,7 +160,7 @@ func NewPrivateAdminAPI(eth *Ethereum) *PrivateAdminAPI {
}
// ExportChain exports the current blockchain into a local file,
// or a range of blocks if first and last are non-nil
// or a range of blocks if first and last are non-nil
.
func
(
api
*
PrivateAdminAPI
)
ExportChain
(
file
string
,
first
*
uint64
,
last
*
uint64
)
(
bool
,
error
)
{
if
first
==
nil
&&
last
!=
nil
{
return
false
,
errors
.
New
(
"last cannot be specified without first"
)
...
...
@@ -328,7 +328,7 @@ type BadBlockArgs struct {
}
// GetBadBlocks returns a list of the last 'bad blocks' that the client has seen on the network
// and returns them as a JSON list of block
-hashes
// and returns them as a JSON list of block
hashes.
func
(
api
*
PrivateDebugAPI
)
GetBadBlocks
(
ctx
context
.
Context
)
([]
*
BadBlockArgs
,
error
)
{
var
(
err
error
...
...
eth/downloader/api.go
View file @
3273ad1a
...
...
@@ -159,7 +159,7 @@ func (s *SyncStatusSubscription) Unsubscribe() {
}
// SubscribeSyncStatus creates a subscription that will broadcast new synchronisation updates.
// The given channel must receive interface values, the result can either
// The given channel must receive interface values, the result can either
.
func
(
api
*
PublicDownloaderAPI
)
SubscribeSyncStatus
(
status
chan
interface
{})
*
SyncStatusSubscription
{
api
.
installSyncSubscription
<-
status
return
&
SyncStatusSubscription
{
api
:
api
,
c
:
status
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment