Skip to content

Commit

Permalink
chore: remove repetitive words (#2301)
Browse files Browse the repository at this point in the history
Co-authored-by: Javier Cortejoso <[email protected]>
  • Loading branch information
ChengenH and jcortejoso authored May 13, 2024
1 parent b75d953 commit ca3465c
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion consensus/istanbul/backend/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ func (sb *Backend) checkIsValidSigner(chain consensus.ChainHeaderReader, header
}

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

header := block.Header()
Expand Down
2 changes: 1 addition & 1 deletion consensus/istanbul/backend/message_senders.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func (sb *Backend) Gossip(payload []byte, ethMsgCode uint64) error {
return sb.asyncMulticast(peersToSendMsg, payload, ethMsgCode)
}

// sendMsg will asynchronously send the the Celo messages to all the peers in the destPeers param.
// sendMsg will asynchronously send the Celo messages to all the peers in the destPeers param.
func (sb *Backend) asyncMulticast(destPeers map[enode.ID]consensus.Peer, payload []byte, ethMsgCode uint64) error {
logger := sb.logger.New("func", "AsyncMulticastCeloMsg", "msgCode", ethMsgCode)
// Istanbul was encoding messages before sending it to the peer,
Expand Down
2 changes: 1 addition & 1 deletion consensus/istanbul/core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ func (c *core) startNewSequence() error {
if headBlock.Number().Cmp(c.current.Sequence()) == 0 {
logger.Trace("Moving to the next block")
} else if headBlock.Number().Cmp(c.current.Sequence()) > 0 {
logger.Trace("Catching up the the head block")
logger.Trace("Catching up the head block")
} else {
logger.Warn("New sequence should be larger than current sequence")
// TODO(Joshua): figure out if we need to wait for the next block to be mined here
Expand Down
2 changes: 1 addition & 1 deletion consensus/istanbul/proxy/proxy_set_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func TestProxySet(t *testing.T) {
expectedValProxyAssignments: map[common.Address]*Proxy{remoteVal0Address: proxy1, remoteVal1Address: proxy1, remoteVal2Address: proxy1},
},

// Test the the unpeered proxy getting repeered
// Test the unpeered proxy getting repeered
{
setProxyPeer: map[enode.ID]consensus.Peer{proxy0ID: proxy0Peer},
expectedValProxyAssignments: map[common.Address]*Proxy{remoteVal0Address: proxy0, remoteVal1Address: proxy1, remoteVal2Address: proxy0},
Expand Down
4 changes: 2 additions & 2 deletions core/state/snapshot/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ var (
// 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
// 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

// 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
// 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

// errMissingTrie is returned if the target trie is missing while the generation
Expand Down
2 changes: 1 addition & 1 deletion crypto/secp256k1/libsecp256k1/src/asm/field_10x26_arm.s
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Note:
- 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'
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
*/

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/_whisper/Diagnostic-Tool-wnode.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,4 +264,4 @@ Please enter the topic (hexadecimal):
```

You can leave the topic empty for now, in which case all the messages will be delivered, regardless of the topic.
The message should be delivered by the the Server, decrypted by the Client and displayed on the screen.
The message should be delivered by the Server, decrypted by the Client and displayed on the screen.
2 changes: 1 addition & 1 deletion eth/protocols/eth/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ type Backend interface {

// TxPool defines the methods needed by the protocol handler to serve transactions.
type TxPool interface {
// Get retrieves the the transaction 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
}

Expand Down
2 changes: 1 addition & 1 deletion les/vflux/client/serverpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const (
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
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
preNegLimit = 5 // maximum number of simultaneous pre-negotiation queries
warnQueryFails = 20 // number of consecutive UDP query failures before we print a warning
Expand Down
2 changes: 1 addition & 1 deletion p2p/discover/v5wire/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ type (
ReqID []byte
ENRSeq uint64
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.
Expand Down
2 changes: 1 addition & 1 deletion trie/iterator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
root := it.trie.Hash()
state := &nodeIteratorState{node: it.trie.root, index: -1}
Expand Down

0 comments on commit ca3465c

Please sign in to comment.