all: remove duplicate word in comments (#29531)
This change removes some duplicate words in in comments
This commit is contained in:
parent
bd91810462
commit
b179b7b8e7
|
@ -661,7 +661,7 @@ var (
|
||||||
}
|
}
|
||||||
HTTPPathPrefixFlag = &cli.StringFlag{
|
HTTPPathPrefixFlag = &cli.StringFlag{
|
||||||
Name: "http.rpcprefix",
|
Name: "http.rpcprefix",
|
||||||
Usage: "HTTP path path prefix on which JSON-RPC is served. Use '/' to serve on all paths.",
|
Usage: "HTTP path prefix on which JSON-RPC is served. Use '/' to serve on all paths.",
|
||||||
Value: "",
|
Value: "",
|
||||||
Category: flags.APICategory,
|
Category: flags.APICategory,
|
||||||
}
|
}
|
||||||
|
|
|
@ -1178,7 +1178,7 @@ func TestDeleteStorage(t *testing.T) {
|
||||||
t.Fatal("delete should have empty hashes")
|
t.Fatal("delete should have empty hashes")
|
||||||
}
|
}
|
||||||
if len(n.Blob) != 0 {
|
if len(n.Blob) != 0 {
|
||||||
t.Fatal("delete should have have empty blobs")
|
t.Fatal("delete should have empty blobs")
|
||||||
}
|
}
|
||||||
a = append(a, fmt.Sprintf("%x", path))
|
a = append(a, fmt.Sprintf("%x", path))
|
||||||
})
|
})
|
||||||
|
|
|
@ -1008,7 +1008,7 @@ func (c *bls12381MapG1) RequiredGas(input []byte) uint64 {
|
||||||
|
|
||||||
func (c *bls12381MapG1) Run(input []byte) ([]byte, error) {
|
func (c *bls12381MapG1) Run(input []byte) ([]byte, error) {
|
||||||
// Implements EIP-2537 Map_To_G1 precompile.
|
// Implements EIP-2537 Map_To_G1 precompile.
|
||||||
// > Field-to-curve call expects `64` bytes an an input that is interpreted as a an element of the base field.
|
// > Field-to-curve call expects an `64` bytes input that is interpreted as an element of the base field.
|
||||||
// > Output of this call is `128` bytes and is G1 point following respective encoding rules.
|
// > Output of this call is `128` bytes and is G1 point following respective encoding rules.
|
||||||
if len(input) != 64 {
|
if len(input) != 64 {
|
||||||
return nil, errBLS12381InvalidInputLength
|
return nil, errBLS12381InvalidInputLength
|
||||||
|
@ -1043,7 +1043,7 @@ func (c *bls12381MapG2) RequiredGas(input []byte) uint64 {
|
||||||
|
|
||||||
func (c *bls12381MapG2) Run(input []byte) ([]byte, error) {
|
func (c *bls12381MapG2) Run(input []byte) ([]byte, error) {
|
||||||
// Implements EIP-2537 Map_FP2_TO_G2 precompile logic.
|
// Implements EIP-2537 Map_FP2_TO_G2 precompile logic.
|
||||||
// > Field-to-curve call expects `128` bytes an an input that is interpreted as a an element of the quadratic extension field.
|
// > Field-to-curve call expects an `128` bytes input that is interpreted as an element of the quadratic extension field.
|
||||||
// > Output of this call is `256` bytes and is G2 point following respective encoding rules.
|
// > Output of this call is `256` bytes and is G2 point following respective encoding rules.
|
||||||
if len(input) != 128 {
|
if len(input) != 128 {
|
||||||
return nil, errBLS12381InvalidInputLength
|
return nil, errBLS12381InvalidInputLength
|
||||||
|
|
|
@ -71,7 +71,7 @@ func TestVerifySignature(t *testing.T) {
|
||||||
wrongkey := common.CopyBytes(testpubkey)
|
wrongkey := common.CopyBytes(testpubkey)
|
||||||
wrongkey[10]++
|
wrongkey[10]++
|
||||||
if VerifySignature(wrongkey, testmsg, sig) {
|
if VerifySignature(wrongkey, testmsg, sig) {
|
||||||
t.Errorf("signature valid with with wrong public key")
|
t.Errorf("signature valid with wrong public key")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -83,7 +83,7 @@ type Config struct {
|
||||||
SyncMode downloader.SyncMode
|
SyncMode downloader.SyncMode
|
||||||
|
|
||||||
// This can be set to list of enrtree:// URLs which will be queried for
|
// This can be set to list of enrtree:// URLs which will be queried for
|
||||||
// for nodes to connect to.
|
// nodes to connect to.
|
||||||
EthDiscoveryURLs []string
|
EthDiscoveryURLs []string
|
||||||
SnapDiscoveryURLs []string
|
SnapDiscoveryURLs []string
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ const (
|
||||||
EventTypeNode EventType = "node"
|
EventTypeNode EventType = "node"
|
||||||
|
|
||||||
// EventTypeConn is the type of event emitted when a connection is
|
// EventTypeConn is the type of event emitted when a connection is
|
||||||
// is either established or dropped between two nodes
|
// either established or dropped between two nodes
|
||||||
EventTypeConn EventType = "conn"
|
EventTypeConn EventType = "conn"
|
||||||
|
|
||||||
// EventTypeMsg is the type of event emitted when a p2p message it
|
// EventTypeMsg is the type of event emitted when a p2p message it
|
||||||
|
|
|
@ -28,7 +28,7 @@ var (
|
||||||
errDatabaseWaitSync = errors.New("waiting for sync")
|
errDatabaseWaitSync = errors.New("waiting for sync")
|
||||||
|
|
||||||
// errSnapshotStale is returned from data accessors if the underlying layer
|
// errSnapshotStale is returned from data accessors if the underlying layer
|
||||||
// layer had been invalidated due to the chain progressing forward far enough
|
// had been invalidated due to the chain progressing forward far enough
|
||||||
// to not maintain the layer's original state.
|
// to not maintain the layer's original state.
|
||||||
errSnapshotStale = errors.New("layer stale")
|
errSnapshotStale = errors.New("layer stale")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue