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
3c865634
Commit
3c865634
authored
Sep 20, 2017
by
Ernesto del Toro
Committed by
Felix Lange
Sep 20, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eth, internal/ethapi: fix spelling of 'Ethereum' (#15164)
parent
b9ff44bd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
api.go
eth/api.go
+4
-4
bind.go
eth/bind.go
+1
-1
api.go
internal/ethapi/api.go
+4
-4
No files found.
eth/api.go
View file @
3c865634
...
@@ -51,7 +51,7 @@ type PublicEthereumAPI struct {
...
@@ -51,7 +51,7 @@ type PublicEthereumAPI struct {
e
*
Ethereum
e
*
Ethereum
}
}
// NewPublicEthereumAPI creates a new Ether
ue
m protocol API for full nodes.
// NewPublicEthereumAPI creates a new Ether
eu
m protocol API for full nodes.
func
NewPublicEthereumAPI
(
e
*
Ethereum
)
*
PublicEthereumAPI
{
func
NewPublicEthereumAPI
(
e
*
Ethereum
)
*
PublicEthereumAPI
{
return
&
PublicEthereumAPI
{
e
}
return
&
PublicEthereumAPI
{
e
}
}
}
...
@@ -205,7 +205,7 @@ func (api *PrivateMinerAPI) GetHashrate() uint64 {
...
@@ -205,7 +205,7 @@ func (api *PrivateMinerAPI) GetHashrate() uint64 {
return
uint64
(
api
.
e
.
miner
.
HashRate
())
return
uint64
(
api
.
e
.
miner
.
HashRate
())
}
}
// PrivateAdminAPI is the collection of Ether
ue
m full node-related APIs
// PrivateAdminAPI is the collection of Ether
eu
m full node-related APIs
// exposed over the private admin endpoint.
// exposed over the private admin endpoint.
type
PrivateAdminAPI
struct
{
type
PrivateAdminAPI
struct
{
eth
*
Ethereum
eth
*
Ethereum
...
@@ -298,7 +298,7 @@ func (api *PrivateAdminAPI) ImportChain(file string) (bool, error) {
...
@@ -298,7 +298,7 @@ func (api *PrivateAdminAPI) ImportChain(file string) (bool, error) {
return
true
,
nil
return
true
,
nil
}
}
// PublicDebugAPI is the collection of Ether
ue
m full node APIs exposed
// PublicDebugAPI is the collection of Ether
eu
m full node APIs exposed
// over the public debugging endpoint.
// over the public debugging endpoint.
type
PublicDebugAPI
struct
{
type
PublicDebugAPI
struct
{
eth
*
Ethereum
eth
*
Ethereum
...
@@ -335,7 +335,7 @@ func (api *PublicDebugAPI) DumpBlock(blockNr rpc.BlockNumber) (state.Dump, error
...
@@ -335,7 +335,7 @@ func (api *PublicDebugAPI) DumpBlock(blockNr rpc.BlockNumber) (state.Dump, error
return
stateDb
.
RawDump
(),
nil
return
stateDb
.
RawDump
(),
nil
}
}
// PrivateDebugAPI is the collection of Ether
ue
m full node APIs exposed over
// PrivateDebugAPI is the collection of Ether
eu
m full node APIs exposed over
// the private debugging endpoint.
// the private debugging endpoint.
type
PrivateDebugAPI
struct
{
type
PrivateDebugAPI
struct
{
config
*
params
.
ChainConfig
config
*
params
.
ChainConfig
...
...
eth/bind.go
View file @
3c865634
...
@@ -43,7 +43,7 @@ type ContractBackend struct {
...
@@ -43,7 +43,7 @@ type ContractBackend struct {
}
}
// NewContractBackend creates a new native contract backend using an existing
// NewContractBackend creates a new native contract backend using an existing
// Ether
ue
m object.
// Ether
eu
m object.
func
NewContractBackend
(
apiBackend
ethapi
.
Backend
)
*
ContractBackend
{
func
NewContractBackend
(
apiBackend
ethapi
.
Backend
)
*
ContractBackend
{
return
&
ContractBackend
{
return
&
ContractBackend
{
eapi
:
ethapi
.
NewPublicEthereumAPI
(
apiBackend
),
eapi
:
ethapi
.
NewPublicEthereumAPI
(
apiBackend
),
...
...
internal/ethapi/api.go
View file @
3c865634
...
@@ -54,7 +54,7 @@ type PublicEthereumAPI struct {
...
@@ -54,7 +54,7 @@ type PublicEthereumAPI struct {
b
Backend
b
Backend
}
}
// NewPublicEthereumAPI creates a new Ether
ue
m protocol API.
// NewPublicEthereumAPI creates a new Ether
eu
m protocol API.
func
NewPublicEthereumAPI
(
b
Backend
)
*
PublicEthereumAPI
{
func
NewPublicEthereumAPI
(
b
Backend
)
*
PublicEthereumAPI
{
return
&
PublicEthereumAPI
{
b
}
return
&
PublicEthereumAPI
{
b
}
}
}
...
@@ -448,7 +448,7 @@ type PublicBlockChainAPI struct {
...
@@ -448,7 +448,7 @@ type PublicBlockChainAPI struct {
b
Backend
b
Backend
}
}
// NewPublicBlockChainAPI creates a new Ether
ue
m blockchain API.
// NewPublicBlockChainAPI creates a new Ether
eu
m blockchain API.
func
NewPublicBlockChainAPI
(
b
Backend
)
*
PublicBlockChainAPI
{
func
NewPublicBlockChainAPI
(
b
Backend
)
*
PublicBlockChainAPI
{
return
&
PublicBlockChainAPI
{
b
}
return
&
PublicBlockChainAPI
{
b
}
}
}
...
@@ -1275,7 +1275,7 @@ func (s *PublicTransactionPoolAPI) Resend(ctx context.Context, sendArgs SendTxAr
...
@@ -1275,7 +1275,7 @@ func (s *PublicTransactionPoolAPI) Resend(ctx context.Context, sendArgs SendTxAr
return
common
.
Hash
{},
fmt
.
Errorf
(
"Transaction %#x not found"
,
matchTx
.
Hash
())
return
common
.
Hash
{},
fmt
.
Errorf
(
"Transaction %#x not found"
,
matchTx
.
Hash
())
}
}
// PublicDebugAPI is the collection of Ether
ue
m APIs exposed over the public
// PublicDebugAPI is the collection of Ether
eu
m APIs exposed over the public
// debugging endpoint.
// debugging endpoint.
type
PublicDebugAPI
struct
{
type
PublicDebugAPI
struct
{
b
Backend
b
Backend
...
@@ -1318,7 +1318,7 @@ func (api *PublicDebugAPI) SeedHash(ctx context.Context, number uint64) (string,
...
@@ -1318,7 +1318,7 @@ func (api *PublicDebugAPI) SeedHash(ctx context.Context, number uint64) (string,
return
fmt
.
Sprintf
(
"0x%x"
,
ethash
.
SeedHash
(
number
)),
nil
return
fmt
.
Sprintf
(
"0x%x"
,
ethash
.
SeedHash
(
number
)),
nil
}
}
// PrivateDebugAPI is the collection of Ether
ue
m APIs exposed over the private
// PrivateDebugAPI is the collection of Ether
eu
m APIs exposed over the private
// debugging endpoint.
// debugging endpoint.
type
PrivateDebugAPI
struct
{
type
PrivateDebugAPI
struct
{
b
Backend
b
Backend
...
...
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