diff --git a/core/state/statedb.go b/core/state/statedb.go index 983628ed6d..ab769d8fcb 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -154,7 +154,7 @@ type StateDB struct { witness *stateless.Witness // TODO(Nathan): more define the relation with `noTrie` // Measurements gathered during execution for debugging purposes - // MetricsMux should be used in more places, but will affect on performance, so following meteration is not accruate + // MetricsMux should be used in more places, but will affect on performance, so following meteration is not accurate MetricsMux sync.Mutex AccountReads time.Duration AccountHashes time.Duration diff --git a/core/stateless.go b/core/stateless.go index d21a62b4a5..6f921a4ef0 100644 --- a/core/stateless.go +++ b/core/stateless.go @@ -36,7 +36,7 @@ import ( // need the other side to explicitly check. // // This method is a bit of a sore thumb here, but: -// - It cannot be placed in core/stateless, because state.New prodces a circular dep +// - It cannot be placed in core/stateless, because state.New produces a circular dep // - It cannot be placed outside of core, because it needs to construct a dud headerchain // // TODO(karalabe): Would be nice to resolve both issues above somehow and move it. diff --git a/core/txpool/blobpool/blobpool_test.go b/core/txpool/blobpool/blobpool_test.go index a1c4c8d5f5..f4a5744f5a 100644 --- a/core/txpool/blobpool/blobpool_test.go +++ b/core/txpool/blobpool/blobpool_test.go @@ -202,7 +202,7 @@ func makeTx(nonce uint64, gasTipCap uint64, gasFeeCap uint64, blobFeeCap uint64, return types.MustSignNewTx(key, types.LatestSigner(params.MainnetChainConfig), blobtx) } -// makeMultiBlobTx is a utility method to construct a ramdom blob tx with +// makeMultiBlobTx is a utility method to construct a random blob tx with // certain number of blobs in its sidecar. func makeMultiBlobTx(nonce uint64, gasTipCap uint64, gasFeeCap uint64, blobFeeCap uint64, blobCount int, key *ecdsa.PrivateKey) *types.Transaction { var ( diff --git a/core/vm/program/program.go b/core/vm/program/program.go index 5b9cfdcc5f..72cf6ff845 100644 --- a/core/vm/program/program.go +++ b/core/vm/program/program.go @@ -53,7 +53,7 @@ func (p *Program) add(op byte) *Program { return p } -// pushBig creates a PUSHX instruction and pushes the given val. +// doPush creates a PUSHX instruction and pushes the given val. // - If the val is nil, it pushes zero // - If the val is bigger than 32 bytes, it panics func (p *Program) doPush(val *uint256.Int) { diff --git a/ethclient/ethclient.go b/ethclient/ethclient.go index 0e6fa13e7e..e804a926aa 100644 --- a/ethclient/ethclient.go +++ b/ethclient/ethclient.go @@ -251,7 +251,7 @@ func (ec *Client) HeaderByNumber(ctx context.Context, number *big.Int) (*types.H return head, err } -// GetFinalizedHeader returns the requested finalized block header. +// FinalizedHeader returns the requested finalized block header. func (ec *Client) FinalizedHeader(ctx context.Context, verifiedValidatorNum int64) (*types.Header, error) { var head *types.Header err := ec.c.CallContext(ctx, &head, "eth_getFinalizedHeader", verifiedValidatorNum)