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
85064ed0
Unverified
Commit
85064ed0
authored
Dec 02, 2021
by
Taeik Lim
Committed by
GitHub
Dec 02, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
all: fix 'the the' in comments (#24036)
parent
b45931cc
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
7 deletions
+7
-7
generate.go
core/state/snapshot/generate.go
+2
-2
field_10x26_arm.s
crypto/secp256k1/libsecp256k1/src/asm/field_10x26_arm.s
+1
-1
handler.go
eth/protocols/eth/handler.go
+1
-1
serverpool.go
les/vflux/client/serverpool.go
+1
-1
msg.go
p2p/discover/v5wire/msg.go
+1
-1
iterator.go
trie/iterator.go
+1
-1
No files found.
core/state/snapshot/generate.go
View file @
85064ed0
...
@@ -48,13 +48,13 @@ var (
...
@@ -48,13 +48,13 @@ var (
// accountCheckRange is the upper limit of the number of accounts involved in
// accountCheckRange is the upper limit of the number of accounts involved in
// each range check. This is a value estimated based on experience. If this
// each range check. This is a value estimated based on experience. If this
// value is too large, the failure rate of range prove will increase. Otherwise
// value is too large, the failure rate of range prove will increase. Otherwise
// the
the
value is too small, the efficiency of the state recovery will decrease.
// the value is too small, the efficiency of the state recovery will decrease.
accountCheckRange
=
128
accountCheckRange
=
128
// storageCheckRange is the upper limit of the number of storage slots involved
// storageCheckRange is the upper limit of the number of storage slots involved
// in each range check. This is a value estimated based on experience. If this
// in each range check. This is a value estimated based on experience. If this
// value is too large, the failure rate of range prove will increase. Otherwise
// value is too large, the failure rate of range prove will increase. Otherwise
// the
the
value is too small, the efficiency of the state recovery will decrease.
// the value is too small, the efficiency of the state recovery will decrease.
storageCheckRange
=
1024
storageCheckRange
=
1024
// errMissingTrie is returned if the target trie is missing while the generation
// errMissingTrie is returned if the target trie is missing while the generation
...
...
crypto/secp256k1/libsecp256k1/src/asm/field_10x26_arm.s
View file @
85064ed0
...
@@ -11,7 +11,7 @@ Note:
...
@@ -11,7 +11,7 @@ Note:
- To avoid unnecessary loads and make use of available registers, two
- To avoid unnecessary loads and make use of available registers, two
'passes' have every time been interleaved, with the odd passes accumulating c' and d'
'passes' have every time been interleaved, with the odd passes accumulating c' and d'
which will be added to c and d respectively in the
the
even passes
which will be added to c and d respectively in the even passes
*/
*/
...
...
eth/protocols/eth/handler.go
View file @
85064ed0
...
@@ -96,7 +96,7 @@ type Backend interface {
...
@@ -96,7 +96,7 @@ type Backend interface {
// TxPool defines the methods needed by the protocol handler to serve transactions.
// TxPool defines the methods needed by the protocol handler to serve transactions.
type
TxPool
interface
{
type
TxPool
interface
{
// Get retrieves the t
he t
ransaction from the local txpool with the given hash.
// Get retrieves the transaction from the local txpool with the given hash.
Get
(
hash
common
.
Hash
)
*
types
.
Transaction
Get
(
hash
common
.
Hash
)
*
types
.
Transaction
}
}
...
...
les/vflux/client/serverpool.go
View file @
85064ed0
...
@@ -44,7 +44,7 @@ const (
...
@@ -44,7 +44,7 @@ const (
queryWaitStep
=
1.02
// exponential multiplier of redial wait time when no value was provided by the server
queryWaitStep
=
1.02
// exponential multiplier of redial wait time when no value was provided by the server
waitThreshold
=
time
.
Hour
*
2000
// drop node if waiting time is over the threshold
waitThreshold
=
time
.
Hour
*
2000
// drop node if waiting time is over the threshold
nodeWeightMul
=
1000000
// multiplier constant for node weight calculation
nodeWeightMul
=
1000000
// multiplier constant for node weight calculation
nodeWeightThreshold
=
100
// minimum weight for keeping a node in the
the
known (valuable) set
nodeWeightThreshold
=
100
// minimum weight for keeping a node in the known (valuable) set
minRedialWait
=
10
// minimum redial wait time in seconds
minRedialWait
=
10
// minimum redial wait time in seconds
preNegLimit
=
5
// maximum number of simultaneous pre-negotiation queries
preNegLimit
=
5
// maximum number of simultaneous pre-negotiation queries
warnQueryFails
=
20
// number of consecutive UDP query failures before we print a warning
warnQueryFails
=
20
// number of consecutive UDP query failures before we print a warning
...
...
p2p/discover/v5wire/msg.go
View file @
85064ed0
...
@@ -84,7 +84,7 @@ type (
...
@@ -84,7 +84,7 @@ type (
ReqID
[]
byte
ReqID
[]
byte
ENRSeq
uint64
ENRSeq
uint64
ToIP
net
.
IP
// These fields should mirror the UDP envelope address of the ping
ToIP
net
.
IP
// These fields should mirror the UDP envelope address of the ping
ToPort
uint16
// packet, which provides a way to discover the
the
external address (after NAT).
ToPort
uint16
// packet, which provides a way to discover the external address (after NAT).
}
}
// FINDNODE is a query for nodes in the given bucket.
// FINDNODE is a query for nodes in the given bucket.
...
...
trie/iterator.go
View file @
85064ed0
...
@@ -275,7 +275,7 @@ func (it *nodeIterator) seek(prefix []byte) error {
...
@@ -275,7 +275,7 @@ func (it *nodeIterator) seek(prefix []byte) error {
}
}
}
}
// init initializes the
the
iterator.
// init initializes the iterator.
func
(
it
*
nodeIterator
)
init
()
(
*
nodeIteratorState
,
error
)
{
func
(
it
*
nodeIterator
)
init
()
(
*
nodeIteratorState
,
error
)
{
root
:=
it
.
trie
.
Hash
()
root
:=
it
.
trie
.
Hash
()
state
:=
&
nodeIteratorState
{
node
:
it
.
trie
.
root
,
index
:
-
1
}
state
:=
&
nodeIteratorState
{
node
:
it
.
trie
.
root
,
index
:
-
1
}
...
...
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