From db4e4dbe405b66c1c47909d574c678c37d255423 Mon Sep 17 00:00:00 2001 From: shandongzhejiang Date: Tue, 17 Sep 2024 02:14:46 +0800 Subject: [PATCH] chore: remove repetitive words (#2327) Signed-off-by: shandongzhejiang --- cmd/devp2p/nodesetcmd.go | 2 +- docs/docs/_developers/dns-discovery-setup.md | 2 +- eth/handler.go | 2 +- signer/core/signed_data.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/devp2p/nodesetcmd.go b/cmd/devp2p/nodesetcmd.go index 7fe3612b2e..35c02897c5 100644 --- a/cmd/devp2p/nodesetcmd.go +++ b/cmd/devp2p/nodesetcmd.go @@ -181,7 +181,7 @@ func parseFilterLimit(args []string) (int, error) { return limit, nil } -// andFilter parses node filters in args and and returns a single filter that requires all +// andFilter parses node filters in args and returns a single filter that requires all // of them to match. func andFilter(args []string) (nodeFilter, error) { checks, err := parseFilters(args) diff --git a/docs/docs/_developers/dns-discovery-setup.md b/docs/docs/_developers/dns-discovery-setup.md index 46d73922c5..4d0b8e7bb8 100644 --- a/docs/docs/_developers/dns-discovery-setup.md +++ b/docs/docs/_developers/dns-discovery-setup.md @@ -30,7 +30,7 @@ go get -u github.com/celo-org/celo-blockchain/cmd/ethkey ### Crawling the v4 DHT Our first step is to compile a list of all reachable nodes. The DHT crawler in cmd/devp2p -is a batch process which runs for a set amount of time. You should should schedule this command +is a batch process which runs for a set amount of time. You should schedule this command to run at a regular interval. To create a node list, run ```shell diff --git a/eth/handler.go b/eth/handler.go index 65e726ff2e..d9d42761ab 100644 --- a/eth/handler.go +++ b/eth/handler.go @@ -287,7 +287,7 @@ func (h *handler) runEthPeer(peer *eth.Peer, handler eth.Handler) error { } // Ignore max peer and max inbound peer check if: // - this is a trusted or statically dialed peer - // - the peer is from from the proxy server (e.g. peers connected to this node's internal network interface) + // - the peer is from the proxy server (e.g. peers connected to this node's internal network interface) // - forcePeer is true if !forcePeer { // KJUE - Remove the server not nil check after restoring peer check in server.go diff --git a/signer/core/signed_data.go b/signer/core/signed_data.go index ad1ab82556..b7c736a76c 100644 --- a/signer/core/signed_data.go +++ b/signer/core/signed_data.go @@ -242,7 +242,7 @@ func (api *SignerAPI) EcRecover(ctx context.Context, data hexutil.Bytes, sig hex // addr = ecrecover(hash, signature) // // Note, the signature must conform to the secp256k1 curve R, S and V values, where - // the V value must be be 27 or 28 for legacy reasons. + // the V value must be 27 or 28 for legacy reasons. // // https://github.com/ethereum/go-ethereum/wiki/Management-APIs#personal_ecRecover if len(sig) != 65 {