graphql, internal: fix typos in comments (#27184)

* ✏️ Fix typos

* ️ Revert changes

* Update internal/web3ext/web3ext.go

---------

Co-authored-by: Martin Holst Swende <martin@swende.se>
pull/27214/head
David Dzhalaev 2 years ago committed by GitHub
parent 7f6c045e0d
commit 29c33d9bab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      graphql/graphql.go
  2. 2
      internal/build/util.go
  3. 2
      internal/debug/trace.go
  4. 14
      internal/ethapi/api.go
  5. 2
      internal/web3ext/web3ext.go

@ -196,7 +196,7 @@ type Transaction struct {
}
// resolve returns the internal transaction object, fetching it if needed.
// It also returns the block the tx blongs to, unless it is a pending tx.
// It also returns the block the tx belongs to, unless it is a pending tx.
func (t *Transaction) resolve(ctx context.Context) (*types.Transaction, *Block, error) {
t.mu.Lock()
defer t.mu.Unlock()
@ -1374,9 +1374,9 @@ func (s *SyncState) HealingBytecode() hexutil.Uint64 {
return hexutil.Uint64(s.progress.HealingBytecode)
}
// Syncing returns false in case the node is currently not syncing with the network. It can be up to date or has not
// Syncing returns false in case the node is currently not syncing with the network. It can be up-to-date or has not
// yet received the latest block headers from its pears. In case it is synchronizing:
// - startingBlock: block number this node started to synchronise from
// - startingBlock: block number this node started to synchronize from
// - currentBlock: block number this node is currently importing
// - highestBlock: block number of the highest block header this node has received from peers
// - syncedAccounts: number of accounts downloaded

@ -127,7 +127,7 @@ func render(tpl *template.Template, outputFile string, outputPerm os.FileMode, x
}
// UploadSFTP uploads files to a remote host using the sftp command line tool.
// The destination host may be specified either as [user@]host[: or as a URI in
// The destination host may be specified either as [user@]host: or as a URI in
// the form sftp://[user@]host[:port].
func UploadSFTP(identityFile, host, dir string, files []string) error {
sftp := exec.Command("sftp")

@ -48,7 +48,7 @@ func (h *HandlerT) StartGoTrace(file string) error {
return nil
}
// StopTrace stops an ongoing trace.
// StopGoTrace stops an ongoing trace.
func (h *HandlerT) StopGoTrace() error {
h.mu.Lock()
defer h.mu.Unlock()

@ -116,9 +116,9 @@ func (s *EthereumAPI) FeeHistory(ctx context.Context, blockCount math.HexOrDecim
return results, nil
}
// Syncing returns false in case the node is currently not syncing with the network. It can be up to date or has not
// Syncing returns false in case the node is currently not syncing with the network. It can be up-to-date or has not
// yet received the latest block headers from its pears. In case it is synchronizing:
// - startingBlock: block number this node started to synchronise from
// - startingBlock: block number this node started to synchronize from
// - currentBlock: block number this node is currently importing
// - highestBlock: block number of the highest block header this node has received from peers
// - pulledStates: number of state entries processed until now
@ -150,7 +150,7 @@ func (s *EthereumAPI) Syncing() (interface{}, error) {
}, nil
}
// TxPoolAPI offers and API for the transaction pool. It only operates on data that is non confidential.
// TxPoolAPI offers and API for the transaction pool. It only operates on data that is non-confidential.
type TxPoolAPI struct {
b Backend
}
@ -337,7 +337,7 @@ func (s *PersonalAccountAPI) OpenWallet(url string, passphrase *string) error {
return wallet.Open(pass)
}
// DeriveAccount requests a HD wallet to derive a new account, optionally pinning
// DeriveAccount requests an HD wallet to derive a new account, optionally pinning
// it for later reuse.
func (s *PersonalAccountAPI) DeriveAccount(url string, path string, pin *bool) (accounts.Account, error) {
wallet, err := s.am.Wallet(url)
@ -712,7 +712,7 @@ func (s *BlockChainAPI) GetProof(ctx context.Context, address common.Address, st
}
// decodeHash parses a hex-encoded 32-byte hash. The input may optionally
// be prefixed by 0x and can have an byte length up to 32.
// be prefixed by 0x and can have a byte length up to 32.
func decodeHash(s string) (common.Hash, error) {
if strings.HasPrefix(s, "0x") || strings.HasPrefix(s, "0X") {
s = s[2:]
@ -1438,7 +1438,7 @@ func newRPCTransactionFromBlockHash(b *types.Block, hash common.Hash, config *pa
}
// accessListResult returns an optional accesslist
// Its the result of the `debug_createAccessList` RPC call.
// It's the result of the `debug_createAccessList` RPC call.
// It contains an error if the transaction itself failed.
type accessListResult struct {
Accesslist *types.AccessList `json:"accessList"`
@ -1446,7 +1446,7 @@ type accessListResult struct {
GasUsed hexutil.Uint64 `json:"gasUsed"`
}
// CreateAccessList creates a EIP-2930 type AccessList for the given transaction.
// CreateAccessList creates an EIP-2930 type AccessList for the given transaction.
// Reexec and BlockNrOrHash can be specified to create the accessList on top of a certain state.
func (s *BlockChainAPI) CreateAccessList(ctx context.Context, args TransactionArgs, blockNrOrHash *rpc.BlockNumberOrHash) (*accessListResult, error) {
bNrOrHash := rpc.BlockNumberOrHashWithNumber(rpc.PendingBlockNumber)

@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
// package web3ext contains geth specific web3.js extensions.
// Package web3ext contains geth specific web3.js extensions.
package web3ext
var Modules = map[string]string{

Loading…
Cancel
Save