Skip to content

Commit ca3465c

Browse files
ChengenHjcortejoso
andauthored
chore: remove repetitive words (#2301)
Co-authored-by: Javier Cortejoso <[email protected]>
1 parent b75d953 commit ca3465c

File tree

11 files changed

+12
-12
lines changed

11 files changed

+12
-12
lines changed

consensus/istanbul/backend/engine.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ func (sb *Backend) checkIsValidSigner(chain consensus.ChainHeaderReader, header
606606
}
607607

608608
// Seal generates a new block for the given input block with the local miner's
609-
// seal place on top and submits it the the consensus engine.
609+
// seal place on top and submits it the consensus engine.
610610
func (sb *Backend) Seal(chain consensus.ChainHeaderReader, block *types.Block) error {
611611

612612
header := block.Header()

consensus/istanbul/backend/message_senders.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func (sb *Backend) Gossip(payload []byte, ethMsgCode uint64) error {
107107
return sb.asyncMulticast(peersToSendMsg, payload, ethMsgCode)
108108
}
109109

110-
// sendMsg will asynchronously send the the Celo messages to all the peers in the destPeers param.
110+
// sendMsg will asynchronously send the Celo messages to all the peers in the destPeers param.
111111
func (sb *Backend) asyncMulticast(destPeers map[enode.ID]consensus.Peer, payload []byte, ethMsgCode uint64) error {
112112
logger := sb.logger.New("func", "AsyncMulticastCeloMsg", "msgCode", ethMsgCode)
113113
// Istanbul was encoding messages before sending it to the peer,

consensus/istanbul/core/core.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ func (c *core) startNewSequence() error {
573573
if headBlock.Number().Cmp(c.current.Sequence()) == 0 {
574574
logger.Trace("Moving to the next block")
575575
} else if headBlock.Number().Cmp(c.current.Sequence()) > 0 {
576-
logger.Trace("Catching up the the head block")
576+
logger.Trace("Catching up the head block")
577577
} else {
578578
logger.Warn("New sequence should be larger than current sequence")
579579
// TODO(Joshua): figure out if we need to wait for the next block to be mined here

consensus/istanbul/proxy/proxy_set_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ func TestProxySet(t *testing.T) {
134134
expectedValProxyAssignments: map[common.Address]*Proxy{remoteVal0Address: proxy1, remoteVal1Address: proxy1, remoteVal2Address: proxy1},
135135
},
136136

137-
// Test the the unpeered proxy getting repeered
137+
// Test the unpeered proxy getting repeered
138138
{
139139
setProxyPeer: map[enode.ID]consensus.Peer{proxy0ID: proxy0Peer},
140140
expectedValProxyAssignments: map[common.Address]*Proxy{remoteVal0Address: proxy0, remoteVal1Address: proxy1, remoteVal2Address: proxy0},

core/state/snapshot/generate.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ var (
4848
// accountCheckRange is the upper limit of the number of accounts involved in
4949
// each range check. This is a value estimated based on experience. If this
5050
// value is too large, the failure rate of range prove will increase. Otherwise
51-
// the the value is too small, the efficiency of the state recovery will decrease.
51+
// the value is too small, the efficiency of the state recovery will decrease.
5252
accountCheckRange = 128
5353

5454
// storageCheckRange is the upper limit of the number of storage slots involved
5555
// in each range check. This is a value estimated based on experience. If this
5656
// value is too large, the failure rate of range prove will increase. Otherwise
57-
// the the value is too small, the efficiency of the state recovery will decrease.
57+
// the value is too small, the efficiency of the state recovery will decrease.
5858
storageCheckRange = 1024
5959

6060
// errMissingTrie is returned if the target trie is missing while the generation

crypto/secp256k1/libsecp256k1/src/asm/field_10x26_arm.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Note:
1111

1212
- To avoid unnecessary loads and make use of available registers, two
1313
'passes' have every time been interleaved, with the odd passes accumulating c' and d'
14-
which will be added to c and d respectively in the the even passes
14+
which will be added to c and d respectively in the even passes
1515

1616
*/
1717

docs/docs/_whisper/Diagnostic-Tool-wnode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,4 +264,4 @@ Please enter the topic (hexadecimal):
264264
```
265265

266266
You can leave the topic empty for now, in which case all the messages will be delivered, regardless of the topic.
267-
The message should be delivered by the the Server, decrypted by the Client and displayed on the screen.
267+
The message should be delivered by the Server, decrypted by the Client and displayed on the screen.

eth/protocols/eth/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ type Backend interface {
9999

100100
// TxPool defines the methods needed by the protocol handler to serve transactions.
101101
type TxPool interface {
102-
// Get retrieves the the transaction from the local txpool with the given hash.
102+
// Get retrieves the transaction from the local txpool with the given hash.
103103
Get(hash common.Hash) *types.Transaction
104104
}
105105

les/vflux/client/serverpool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const (
4444
queryWaitStep = 1.02 // exponential multiplier of redial wait time when no value was provided by the server
4545
waitThreshold = time.Hour * 2000 // drop node if waiting time is over the threshold
4646
nodeWeightMul = 1000000 // multiplier constant for node weight calculation
47-
nodeWeightThreshold = 100 // minimum weight for keeping a node in the the known (valuable) set
47+
nodeWeightThreshold = 100 // minimum weight for keeping a node in the known (valuable) set
4848
minRedialWait = 10 // minimum redial wait time in seconds
4949
preNegLimit = 5 // maximum number of simultaneous pre-negotiation queries
5050
warnQueryFails = 20 // number of consecutive UDP query failures before we print a warning

p2p/discover/v5wire/msg.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ type (
8484
ReqID []byte
8585
ENRSeq uint64
8686
ToIP net.IP // These fields should mirror the UDP envelope address of the ping
87-
ToPort uint16 // packet, which provides a way to discover the the external address (after NAT).
87+
ToPort uint16 // packet, which provides a way to discover the external address (after NAT).
8888
}
8989

9090
// FINDNODE is a query for nodes in the given bucket.

0 commit comments

Comments
 (0)