core: fix typos (#28238)
This commit is contained in:
parent
07dec7a11c
commit
339a4cf056
@ -95,7 +95,7 @@ type DerivableList interface {
|
||||
func encodeForDerive(list DerivableList, i int, buf *bytes.Buffer) []byte {
|
||||
buf.Reset()
|
||||
list.EncodeIndex(i, buf)
|
||||
// It's really unfortunate that we need to do perform this copy.
|
||||
// It's really unfortunate that we need to perform this copy.
|
||||
// StackTrie holds onto the values until Hash is called, so the values
|
||||
// written to it must not alias.
|
||||
return common.CopyBytes(buf.Bytes())
|
||||
|
@ -87,7 +87,7 @@ func SlimAccountRLP(account StateAccount) []byte {
|
||||
return data
|
||||
}
|
||||
|
||||
// FullAccount decodes the data on the 'slim RLP' format and return
|
||||
// FullAccount decodes the data on the 'slim RLP' format and returns
|
||||
// the consensus format account.
|
||||
func FullAccount(data []byte) (*StateAccount, error) {
|
||||
var slim SlimAccount
|
||||
|
@ -168,7 +168,7 @@ func (tx *Transaction) DecodeRLP(s *rlp.Stream) error {
|
||||
}
|
||||
|
||||
// UnmarshalBinary decodes the canonical encoding of transactions.
|
||||
// It supports legacy RLP transactions and EIP2718 typed transactions.
|
||||
// It supports legacy RLP transactions and EIP-2718 typed transactions.
|
||||
func (tx *Transaction) UnmarshalBinary(b []byte) error {
|
||||
if len(b) > 0 && b[0] > 0x7f {
|
||||
// It's a legacy transaction.
|
||||
@ -180,7 +180,7 @@ func (tx *Transaction) UnmarshalBinary(b []byte) error {
|
||||
tx.setDecoded(&data, uint64(len(b)))
|
||||
return nil
|
||||
}
|
||||
// It's an EIP2718 typed transaction envelope.
|
||||
// It's an EIP-2718 typed transaction envelope.
|
||||
inner, err := tx.decodeTyped(b)
|
||||
if err != nil {
|
||||
return err
|
||||
@ -395,7 +395,7 @@ func (tx *Transaction) BlobGasFeeCap() *big.Int {
|
||||
return nil
|
||||
}
|
||||
|
||||
// BlobHashes returns the hases of the blob commitments for blob transactions, nil otherwise.
|
||||
// BlobHashes returns the hashes of the blob commitments for blob transactions, nil otherwise.
|
||||
func (tx *Transaction) BlobHashes() []common.Hash {
|
||||
if blobtx, ok := tx.inner.(*BlobTx); ok {
|
||||
return blobtx.BlobHashes
|
||||
|
@ -57,7 +57,7 @@ func MakeSigner(config *params.ChainConfig, blockNumber *big.Int, blockTime uint
|
||||
}
|
||||
|
||||
// LatestSigner returns the 'most permissive' Signer available for the given chain
|
||||
// configuration. Specifically, this enables support of all types of transacrions
|
||||
// configuration. Specifically, this enables support of all types of transactions
|
||||
// when their respective forks are scheduled to occur at any block number (or time)
|
||||
// in the chain config.
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user