Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(miner): typo #299

Merged
merged 1 commit into from
Aug 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions miner/taiko_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (w *worker) BuildTransactionsLists(
minTip,
)

b, err := encodeAndComporeessTxList(env.txs)
b, err := encodeAndCompressTxList(env.txs)
if err != nil {
return nil, nil, err
}
Expand Down Expand Up @@ -314,7 +314,7 @@ loop:
txs.Shift()

// Encode and compress the txList, if the byte length is > maxBytesPerTxList, remove the latest tx and break.
b, err := encodeAndComporeessTxList(env.txs)
b, err := encodeAndCompressTxList(env.txs)
if err != nil {
log.Trace("Failed to rlp encode and compress the pending transaction %s: %w", tx.Hash(), err)
txs.Pop()
Expand All @@ -336,8 +336,8 @@ loop:
return lastTransaction
}

// encodeAndComporeessTxList encodes and compresses the given transactions list.
func encodeAndComporeessTxList(txs types.Transactions) ([]byte, error) {
// encodeAndCompressTxList encodes and compresses the given transactions list.
func encodeAndCompressTxList(txs types.Transactions) ([]byte, error) {
b, err := rlp.EncodeToBytes(txs)
if err != nil {
return nil, err
Expand Down
Loading