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
8f8774cf
Commit
8f8774cf
authored
7 years ago
by
Wuxiang
Committed by
Péter Szilágyi
7 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
all: fix various typos (#16533)
* fix typo * fix typo * fix typo
parent
c514fbcc
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
23 additions
and
23 deletions
+23
-23
main.go
cmd/geth/main.go
+1
-1
module_dashboard.go
cmd/puppeth/module_dashboard.go
+1
-1
module_explorer.go
cmd/puppeth/module_explorer.go
+1
-1
module_faucet.go
cmd/puppeth/module_faucet.go
+3
-3
module_node.go
cmd/puppeth/module_node.go
+1
-1
bridge.go
console/bridge.go
+1
-1
matcher.go
core/bloombits/matcher.go
+1
-1
api.go
eth/downloader/api.go
+1
-1
fetcher_test.go
eth/fetcher/fetcher_test.go
+1
-1
web3.js
internal/jsre/deps/web3.js
+1
-1
types.go
mobile/types.go
+8
-8
config.go
node/config.go
+1
-1
doc.go
rpc/doc.go
+1
-1
address.go
swarm/network/kademlia/address.go
+1
-1
No files found.
cmd/geth/main.go
View file @
8f8774cf
...
...
@@ -241,7 +241,7 @@ func startNode(ctx *cli.Context, stack *node.Node) {
stack
.
AccountManager
()
.
Subscribe
(
events
)
go
func
()
{
// Create a
n
chain state reader for self-derivation
// Create a chain state reader for self-derivation
rpcClient
,
err
:=
stack
.
Attach
()
if
err
!=
nil
{
utils
.
Fatalf
(
"Failed to attach to self: %v"
,
err
)
...
...
This diff is collapsed.
Click to expand it.
cmd/puppeth/module_dashboard.go
View file @
8f8774cf
...
...
@@ -683,7 +683,7 @@ func deployDashboard(client *sshClient, network string, conf *config, config *da
return
nil
,
client
.
Stream
(
fmt
.
Sprintf
(
"cd %s && docker-compose -p %s up -d --build --force-recreate"
,
workdir
,
network
))
}
// dashboardInfos is returned from a
n
dashboard status check to allow reporting
// dashboardInfos is returned from a dashboard status check to allow reporting
// various configuration parameters.
type
dashboardInfos
struct
{
host
string
...
...
This diff is collapsed.
Click to expand it.
cmd/puppeth/module_explorer.go
View file @
8f8774cf
...
...
@@ -168,7 +168,7 @@ func (info *explorerInfos) Report() map[string]string {
return
report
}
// checkExplorer does a health-check against a
n
block explorer server to verify
// checkExplorer does a health-check against a block explorer server to verify
// whether it's running, and if yes, whether it's responsive.
func
checkExplorer
(
client
*
sshClient
,
network
string
)
(
*
explorerInfos
,
error
)
{
// Inspect a possible block explorer container on the host
...
...
This diff is collapsed.
Click to expand it.
cmd/puppeth/module_faucet.go
View file @
8f8774cf
...
...
@@ -30,7 +30,7 @@ import (
"github.com/ethereum/go-ethereum/log"
)
// faucetDockerfile is the Dockerfile required to build a
n
faucet container to
// faucetDockerfile is the Dockerfile required to build a faucet container to
// grant crypto tokens based on GitHub authentications.
var
faucetDockerfile
=
`
FROM ethereum/client-go:alltools-latest
...
...
@@ -138,7 +138,7 @@ func deployFaucet(client *sshClient, network string, bootnodes []string, config
return
nil
,
client
.
Stream
(
fmt
.
Sprintf
(
"cd %s && docker-compose -p %s up -d --build --force-recreate"
,
workdir
,
network
))
}
// faucetInfos is returned from a
n
faucet status check to allow reporting various
// faucetInfos is returned from a faucet status check to allow reporting various
// configuration parameters.
type
faucetInfos
struct
{
node
*
nodeInfos
...
...
@@ -181,7 +181,7 @@ func (info *faucetInfos) Report() map[string]string {
return
report
}
// checkFaucet does a health-check against a
n
faucet server to verify whether
// checkFaucet does a health-check against a faucet server to verify whether
// it's running, and if yes, gathering a collection of useful infos about it.
func
checkFaucet
(
client
*
sshClient
,
network
string
)
(
*
faucetInfos
,
error
)
{
// Inspect a possible faucet container on the host
...
...
This diff is collapsed.
Click to expand it.
cmd/puppeth/module_node.go
View file @
8f8774cf
...
...
@@ -198,7 +198,7 @@ func (info *nodeInfos) Report() map[string]string {
return
report
}
// checkNode does a health-check against a
n
boot or seal node server to verify
// checkNode does a health-check against a boot or seal node server to verify
// whether it's running, and if yes, whether it's responsive.
func
checkNode
(
client
*
sshClient
,
network
string
,
boot
bool
)
(
*
nodeInfos
,
error
)
{
kind
:=
"bootnode"
...
...
This diff is collapsed.
Click to expand it.
console/bridge.go
View file @
8f8774cf
...
...
@@ -87,7 +87,7 @@ func (b *bridge) NewAccount(call otto.FunctionCall) (response otto.Value) {
// OpenWallet is a wrapper around personal.openWallet which can interpret and
// react to certain error messages, such as the Trezor PIN matrix request.
func
(
b
*
bridge
)
OpenWallet
(
call
otto
.
FunctionCall
)
(
response
otto
.
Value
)
{
// Make sure we have a
n
wallet specified to open
// Make sure we have a wallet specified to open
if
!
call
.
Argument
(
0
)
.
IsString
()
{
throwJSException
(
"first argument must be the wallet URL to open"
)
}
...
...
This diff is collapsed.
Click to expand it.
core/bloombits/matcher.go
View file @
8f8774cf
...
...
@@ -392,7 +392,7 @@ func (m *Matcher) distributor(dist chan *request, session *MatcherSession) {
shutdown
=
session
.
quit
// Shutdown request channel, will gracefully wait for pending requests
)
// assign is a helper method fo try to assign a pending bit an a
n a
ctively
// assign is a helper method fo try to assign a pending bit an actively
// listening servicer, or schedule it up for later when one arrives.
assign
:=
func
(
bit
uint
)
{
select
{
...
...
This diff is collapsed.
Click to expand it.
eth/downloader/api.go
View file @
8f8774cf
...
...
@@ -51,7 +51,7 @@ func NewPublicDownloaderAPI(d *Downloader, m *event.TypeMux) *PublicDownloaderAP
return
api
}
// eventLoop runs a
n
loop until the event mux closes. It will install and uninstall new
// eventLoop runs a loop until the event mux closes. It will install and uninstall new
// sync subscriptions and broadcasts sync status updates to the installed sync subscriptions.
func
(
api
*
PublicDownloaderAPI
)
eventLoop
()
{
var
(
...
...
This diff is collapsed.
Click to expand it.
eth/fetcher/fetcher_test.go
View file @
8f8774cf
...
...
@@ -198,7 +198,7 @@ func (f *fetcherTester) makeBodyFetcher(peer string, blocks map[common.Hash]*typ
}
}
// verifyFetchingEvent verifies that one single event arrive on a
n
fetching channel.
// verifyFetchingEvent verifies that one single event arrive on a fetching channel.
func
verifyFetchingEvent
(
t
*
testing
.
T
,
fetching
chan
[]
common
.
Hash
,
arrive
bool
)
{
if
arrive
{
select
{
...
...
This diff is collapsed.
Click to expand it.
internal/jsre/deps/web3.js
View file @
8f8774cf
...
...
@@ -2193,7 +2193,7 @@ var toWei = function(number, unit) {
};
/**
* Takes an input and transforms it into a
n
bignumber
* Takes an input and transforms it into a bignumber
*
* @method toBigNumber
* @param {Number|String|BigNumber} a number, string, HEX string or BigNumber
...
...
This diff is collapsed.
Click to expand it.
mobile/types.go
View file @
8f8774cf
...
...
@@ -80,7 +80,7 @@ func (h *Header) EncodeRLP() ([]byte, error) {
return
rlp
.
EncodeToBytes
(
h
.
header
)
}
// NewHeaderFromJSON parses a header from a
n
JSON data dump.
// NewHeaderFromJSON parses a header from a JSON data dump.
func
NewHeaderFromJSON
(
data
string
)
(
*
Header
,
error
)
{
h
:=
&
Header
{
header
:
new
(
types
.
Header
),
...
...
@@ -91,7 +91,7 @@ func NewHeaderFromJSON(data string) (*Header, error) {
return
h
,
nil
}
// EncodeJSON encodes a header into a
n
JSON data dump.
// EncodeJSON encodes a header into a JSON data dump.
func
(
h
*
Header
)
EncodeJSON
()
(
string
,
error
)
{
data
,
err
:=
json
.
Marshal
(
h
.
header
)
return
string
(
data
),
err
...
...
@@ -151,7 +151,7 @@ func (b *Block) EncodeRLP() ([]byte, error) {
return
rlp
.
EncodeToBytes
(
b
.
block
)
}
// NewBlockFromJSON parses a block from a
n
JSON data dump.
// NewBlockFromJSON parses a block from a JSON data dump.
func
NewBlockFromJSON
(
data
string
)
(
*
Block
,
error
)
{
b
:=
&
Block
{
block
:
new
(
types
.
Block
),
...
...
@@ -162,7 +162,7 @@ func NewBlockFromJSON(data string) (*Block, error) {
return
b
,
nil
}
// EncodeJSON encodes a block into a
n
JSON data dump.
// EncodeJSON encodes a block into a JSON data dump.
func
(
b
*
Block
)
EncodeJSON
()
(
string
,
error
)
{
data
,
err
:=
json
.
Marshal
(
b
.
block
)
return
string
(
data
),
err
...
...
@@ -220,7 +220,7 @@ func (tx *Transaction) EncodeRLP() ([]byte, error) {
return
rlp
.
EncodeToBytes
(
tx
.
tx
)
}
// NewTransactionFromJSON parses a transaction from a
n
JSON data dump.
// NewTransactionFromJSON parses a transaction from a JSON data dump.
func
NewTransactionFromJSON
(
data
string
)
(
*
Transaction
,
error
)
{
tx
:=
&
Transaction
{
tx
:
new
(
types
.
Transaction
),
...
...
@@ -231,7 +231,7 @@ func NewTransactionFromJSON(data string) (*Transaction, error) {
return
tx
,
nil
}
// EncodeJSON encodes a transaction into a
n
JSON data dump.
// EncodeJSON encodes a transaction into a JSON data dump.
func
(
tx
*
Transaction
)
EncodeJSON
()
(
string
,
error
)
{
data
,
err
:=
json
.
Marshal
(
tx
.
tx
)
return
string
(
data
),
err
...
...
@@ -312,7 +312,7 @@ func (r *Receipt) EncodeRLP() ([]byte, error) {
return
rlp
.
EncodeToBytes
(
r
.
receipt
)
}
// NewReceiptFromJSON parses a transaction receipt from a
n
JSON data dump.
// NewReceiptFromJSON parses a transaction receipt from a JSON data dump.
func
NewReceiptFromJSON
(
data
string
)
(
*
Receipt
,
error
)
{
r
:=
&
Receipt
{
receipt
:
new
(
types
.
Receipt
),
...
...
@@ -323,7 +323,7 @@ func NewReceiptFromJSON(data string) (*Receipt, error) {
return
r
,
nil
}
// EncodeJSON encodes a transaction receipt into a
n
JSON data dump.
// EncodeJSON encodes a transaction receipt into a JSON data dump.
func
(
r
*
Receipt
)
EncodeJSON
()
(
string
,
error
)
{
data
,
err
:=
rlp
.
EncodeToBytes
(
r
.
receipt
)
return
string
(
data
),
err
...
...
This diff is collapsed.
Click to expand it.
node/config.go
View file @
8f8774cf
...
...
@@ -209,7 +209,7 @@ func DefaultHTTPEndpoint() string {
return
config
.
HTTPEndpoint
()
}
// WSEndpoint resolves a
n
websocket endpoint based on the configured host interface
// WSEndpoint resolves a websocket endpoint based on the configured host interface
// and port parameters.
func
(
c
*
Config
)
WSEndpoint
()
string
{
if
c
.
WSHost
==
""
{
...
...
This diff is collapsed.
Click to expand it.
rpc/doc.go
View file @
8f8774cf
...
...
@@ -92,7 +92,7 @@ An example method:
Subscriptions are deleted when:
- the user sends an unsubscribe request
- the connection which was used to create the subscription is closed. This can be initiated
by the client and server. The server will close the connection on a
n
write error or when
by the client and server. The server will close the connection on a write error or when
the queue of buffered notifications gets too big.
*/
package
rpc
This diff is collapsed.
Click to expand it.
swarm/network/kademlia/address.go
View file @
8f8774cf
...
...
@@ -51,7 +51,7 @@ func (a Address) Bin() string {
/*
Proximity(x, y) returns the proximity order of the MSB distance between x and y
The distance metric MSB(x, y) of two equal length byte sequences x an y is the
The distance metric MSB(x, y) of two equal length byte sequences x an
d
y is the
value of the binary integer cast of the x^y, ie., x and y bitwise xor-ed.
the binary cast is big endian: most significant bit first (=MSB).
...
...
This diff is collapsed.
Click to expand it.
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