From 5a2e55f1d666d1a8251a2c3bbd28db8abc69657a Mon Sep 17 00:00:00 2001 From: queryfast Date: Tue, 5 Aug 2025 11:43:22 +0800 Subject: [PATCH] chore: fix some minor issues in comments Signed-off-by: queryfast --- Dockerfile | 2 +- Dockerfile.alltools | 2 +- Dockerfile.debian | 2 +- eth/protocols/snap/sync.go | 2 +- miner/worker.go | 2 +- rpc/service.go | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index ed69a0478..f6063d87c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,7 +25,7 @@ COPY --from=builder /go-ethereum/build/bin/geth /usr/local/bin/ EXPOSE 8545 8546 30303 30303/udp ENTRYPOINT ["geth"] -# Add some metadata labels to help programatic image consumption +# Add some metadata labels to help programmatic image consumption ARG COMMIT="" ARG VERSION="" ARG BUILDNUM="" diff --git a/Dockerfile.alltools b/Dockerfile.alltools index c317da25f..d2f04a001 100644 --- a/Dockerfile.alltools +++ b/Dockerfile.alltools @@ -24,7 +24,7 @@ COPY --from=builder /go-ethereum/build/bin/* /usr/local/bin/ EXPOSE 8545 8546 30303 30303/udp -# Add some metadata labels to help programatic image consumption +# Add some metadata labels to help programmatic image consumption ARG COMMIT="" ARG VERSION="" ARG BUILDNUM="" diff --git a/Dockerfile.debian b/Dockerfile.debian index b2247a96c..e20abf53b 100644 --- a/Dockerfile.debian +++ b/Dockerfile.debian @@ -22,7 +22,7 @@ COPY --from=builder /go-ethereum/build/bin/geth /usr/local/bin/ EXPOSE 8545 8546 30303 30303/udp ENTRYPOINT ["geth"] -# Add some metadata labels to help programatic image consumption +# Add some metadata labels to help programmatic image consumption ARG COMMIT="" ARG VERSION="" ARG BUILDNUM="" diff --git a/eth/protocols/snap/sync.go b/eth/protocols/snap/sync.go index 887a50775..14a2a4fde 100644 --- a/eth/protocols/snap/sync.go +++ b/eth/protocols/snap/sync.go @@ -83,7 +83,7 @@ const ( minTrienodeHealThrottle = 1 // maxTrienodeHealThrottle is the maximum divisor for throttling trie node - // heal requests to avoid overloading the local node and exessively expanding + // heal requests to avoid overloading the local node and excessively expanding // the state trie bedth wise. maxTrienodeHealThrottle = maxTrieRequestCount diff --git a/miner/worker.go b/miner/worker.go index afab9a7e1..9db41973f 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -891,7 +891,7 @@ func (w *worker) commitTransactions(env *environment, txs transactionsByPriceAnd // generateParams wraps various of settings for generating sealing task. type generateParams struct { - timestamp uint64 // The timstamp for sealing task + timestamp uint64 // The timestamp for sealing task forceTime bool // Flag whether the given timestamp is immutable or not parentHash common.Hash // Parent block hash, empty means the latest chain head coinbase common.Address // The fee recipient address for including transaction diff --git a/rpc/service.go b/rpc/service.go index a180b8db9..46bfe990a 100644 --- a/rpc/service.go +++ b/rpc/service.go @@ -227,7 +227,7 @@ func isSubscriptionType(t reflect.Type) bool { return t == subscriptionType } -// isPubSub tests whether the given method has as as first argument a context.Context and +// isPubSub tests whether the given method has as its first argument a context.Context and // returns the pair (Subscription, error). func isPubSub(methodType reflect.Type) bool { // numIn(0) is the receiver type