Skip to content

Commit 5faa71b

Browse files
authored
fix(taiko_miner): fix a typo (#299)
1 parent 2134337 commit 5faa71b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

miner/taiko_worker.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func (w *worker) BuildTransactionsLists(
9898
minTip,
9999
)
100100

101-
b, err := encodeAndComporeessTxList(env.txs)
101+
b, err := encodeAndCompressTxList(env.txs)
102102
if err != nil {
103103
return nil, nil, err
104104
}
@@ -314,7 +314,7 @@ loop:
314314
txs.Shift()
315315

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

339-
// encodeAndComporeessTxList encodes and compresses the given transactions list.
340-
func encodeAndComporeessTxList(txs types.Transactions) ([]byte, error) {
339+
// encodeAndCompressTxList encodes and compresses the given transactions list.
340+
func encodeAndCompressTxList(txs types.Transactions) ([]byte, error) {
341341
b, err := rlp.EncodeToBytes(txs)
342342
if err != nil {
343343
return nil, err

0 commit comments

Comments
 (0)