Skip to content

Commit c394c30

Browse files
authored
all: remove duplicate word in comments (#25618)
Signed-off-by: Abirdcfly <fp544037857@gmail.com> Signed-off-by: Abirdcfly <fp544037857@gmail.com>
1 parent f03c37b commit c394c30

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

cmd/devp2p/nodesetcmd.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ func parseFilterLimit(args []string) (int, error) {
181181
return limit, nil
182182
}
183183

184-
// andFilter parses node filters in args and and returns a single filter that requires all
184+
// andFilter parses node filters in args and returns a single filter that requires all
185185
// of them to match.
186186
func andFilter(args []string) (nodeFilter, error) {
187187
checks, err := parseFilters(args)

core/error.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ var (
9191
ErrFeeCapVeryHigh = errors.New("max fee per gas higher than 2^256-1")
9292

9393
// ErrFeeCapTooLow is returned if the transaction fee cap is less than the
94-
// the base fee of the block.
94+
// base fee of the block.
9595
ErrFeeCapTooLow = errors.New("max fee per gas less than block base fee")
9696

9797
// ErrSenderNoEOA is returned if the sender of a transaction is a contract.

core/state/snapshot/difflayer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ var (
6868
bloomFuncs = math.Round((bloomSize / float64(aggregatorItemLimit)) * math.Log(2))
6969

7070
// the bloom offsets are runtime constants which determines which part of the
71-
// the account/storage hash the hasher functions looks at, to determine the
71+
// account/storage hash the hasher functions looks at, to determine the
7272
// bloom key for an account/slot. This is randomized at init(), so that the
7373
// global population of nodes do not all display the exact same behaviour with
7474
// regards to bloom content

core/tx_noncer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func (txn *txNoncer) set(addr common.Address, nonce uint64) {
6464
}
6565

6666
// setIfLower updates a new virtual nonce into the virtual state database if the
67-
// the new one is lower.
67+
// new one is lower.
6868
func (txn *txNoncer) setIfLower(addr common.Address, nonce uint64) {
6969
txn.lock.Lock()
7070
defer txn.lock.Unlock()

p2p/discover/v4wire/v4wire.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ type (
6060
Pong struct {
6161
// This field should mirror the UDP envelope address
6262
// of the ping packet, which provides a way to discover the
63-
// the external address (after NAT).
63+
// external address (after NAT).
6464
To Endpoint
6565
ReplyTok []byte // This contains the hash of the ping packet.
6666
Expiration uint64 // Absolute timestamp at which the packet becomes invalid.

0 commit comments

Comments
 (0)