all: remove duplicate word in comments (#25618)

Signed-off-by: Abirdcfly <fp544037857@gmail.com>

Signed-off-by: Abirdcfly <fp544037857@gmail.com>
pull/25629/head
Abirdcfly 2 years ago committed by GitHub
parent f03c37b73e
commit c394c308e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      cmd/devp2p/nodesetcmd.go
  2. 2
      core/error.go
  3. 2
      core/state/snapshot/difflayer.go
  4. 2
      core/tx_noncer.go
  5. 2
      p2p/discover/v4wire/v4wire.go

@ -181,7 +181,7 @@ func parseFilterLimit(args []string) (int, error) {
return limit, nil 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. // of them to match.
func andFilter(args []string) (nodeFilter, error) { func andFilter(args []string) (nodeFilter, error) {
checks, err := parseFilters(args) checks, err := parseFilters(args)

@ -91,7 +91,7 @@ var (
ErrFeeCapVeryHigh = errors.New("max fee per gas higher than 2^256-1") ErrFeeCapVeryHigh = errors.New("max fee per gas higher than 2^256-1")
// ErrFeeCapTooLow is returned if the transaction fee cap is less than the // ErrFeeCapTooLow is returned if the transaction fee cap is less than the
// the base fee of the block. // base fee of the block.
ErrFeeCapTooLow = errors.New("max fee per gas less than block base fee") ErrFeeCapTooLow = errors.New("max fee per gas less than block base fee")
// ErrSenderNoEOA is returned if the sender of a transaction is a contract. // ErrSenderNoEOA is returned if the sender of a transaction is a contract.

@ -68,7 +68,7 @@ var (
bloomFuncs = math.Round((bloomSize / float64(aggregatorItemLimit)) * math.Log(2)) bloomFuncs = math.Round((bloomSize / float64(aggregatorItemLimit)) * math.Log(2))
// the bloom offsets are runtime constants which determines which part of the // the bloom offsets are runtime constants which determines which part of the
// the account/storage hash the hasher functions looks at, to determine the // account/storage hash the hasher functions looks at, to determine the
// bloom key for an account/slot. This is randomized at init(), so that the // bloom key for an account/slot. This is randomized at init(), so that the
// global population of nodes do not all display the exact same behaviour with // global population of nodes do not all display the exact same behaviour with
// regards to bloom content // regards to bloom content

@ -64,7 +64,7 @@ func (txn *txNoncer) set(addr common.Address, nonce uint64) {
} }
// setIfLower updates a new virtual nonce into the virtual state database if the // setIfLower updates a new virtual nonce into the virtual state database if the
// the new one is lower. // new one is lower.
func (txn *txNoncer) setIfLower(addr common.Address, nonce uint64) { func (txn *txNoncer) setIfLower(addr common.Address, nonce uint64) {
txn.lock.Lock() txn.lock.Lock()
defer txn.lock.Unlock() defer txn.lock.Unlock()

@ -60,7 +60,7 @@ type (
Pong struct { Pong struct {
// This field should mirror the UDP envelope address // This field should mirror the UDP envelope address
// of the ping packet, which provides a way to discover the // of the ping packet, which provides a way to discover the
// the external address (after NAT). // external address (after NAT).
To Endpoint To Endpoint
ReplyTok []byte // This contains the hash of the ping packet. ReplyTok []byte // This contains the hash of the ping packet.
Expiration uint64 // Absolute timestamp at which the packet becomes invalid. Expiration uint64 // Absolute timestamp at which the packet becomes invalid.

Loading…
Cancel
Save