From 8f55c9317eb573a6447e6641d66d52f2bcf53732 Mon Sep 17 00:00:00 2001 From: alaningtrump Date: Thu, 2 Jul 2026 21:57:16 +0800 Subject: [PATCH] chore: fix some comments to improve readability Signed-off-by: alaningtrump --- accounts/external/backend.go | 2 +- accounts/keystore/passphrase.go | 2 +- client/ctxc_client.go | 2 +- consensus/cuckoo/api.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/accounts/external/backend.go b/accounts/external/backend.go index 9da6772639..ffd20dfe53 100644 --- a/accounts/external/backend.go +++ b/accounts/external/backend.go @@ -166,7 +166,7 @@ func (api *ExternalSigner) SignData(account accounts.Account, mimeType string, d hexutil.Encode(data)); err != nil { return nil, err } - // If V is on 27/28-form, convert to to 0/1 for Clique + // If V is on 27/28-form, convert to 0/1 for Clique if mimeType == accounts.MimetypeClique && (res[64] == 27 || res[64] == 28) { res[64] -= 27 // Transform V from 27/28 to 0/1 for Clique use } diff --git a/accounts/keystore/passphrase.go b/accounts/keystore/passphrase.go index 4b24ecaa52..f6e8b6a759 100644 --- a/accounts/keystore/passphrase.go +++ b/accounts/keystore/passphrase.go @@ -137,7 +137,7 @@ func (ks keyStorePassphrase) JoinPath(filename string) string { return filepath.Join(ks.keysDirPath, filename) } -// Encryptdata encrypts the data given as 'data' with the password 'auth'. +// EncryptDataV3 encrypts the data given as 'data' with the password 'auth'. func EncryptDataV3(data, auth []byte, scryptN, scryptP int) (CryptoJSON, error) { salt := make([]byte, 32) diff --git a/client/ctxc_client.go b/client/ctxc_client.go index ede04ae8f4..8a78c8ffa3 100644 --- a/client/ctxc_client.go +++ b/client/ctxc_client.go @@ -67,7 +67,7 @@ func (ec *Client) Client() *rpc.Client { // Blockchain Access -// ChainId retrieves the current chain ID for transaction replay protection. +// ChainID retrieves the current chain ID for transaction replay protection. func (ec *Client) ChainID(ctx context.Context) (*big.Int, error) { var result hexutil.Big err := ec.c.CallContext(ctx, &result, "ctxc_chainId") diff --git a/consensus/cuckoo/api.go b/consensus/cuckoo/api.go index 44059bf1da..68447c49d9 100644 --- a/consensus/cuckoo/api.go +++ b/consensus/cuckoo/api.go @@ -97,7 +97,7 @@ func (api *API) SubmitWork(nonce types.BlockNonce, hash common.Hash, solution st return err == nil } -// SubmitHashrate can be used for remote miners to submit their hash rate. +// SubmitHashRate can be used for remote miners to submit their hash rate. // This enables the node to report the combined hash rate of all miners // which submit work through this node. //