mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-16 08:53:46 +00:00
fix(taiko_miner): fix a typo (#299)
This commit is contained in:
parent
2134337035
commit
5faa71b531
1 changed files with 4 additions and 4 deletions
|
|
@ -98,7 +98,7 @@ func (w *worker) BuildTransactionsLists(
|
||||||
minTip,
|
minTip,
|
||||||
)
|
)
|
||||||
|
|
||||||
b, err := encodeAndComporeessTxList(env.txs)
|
b, err := encodeAndCompressTxList(env.txs)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, nil, err
|
return nil, nil, err
|
||||||
}
|
}
|
||||||
|
|
@ -314,7 +314,7 @@ loop:
|
||||||
txs.Shift()
|
txs.Shift()
|
||||||
|
|
||||||
// Encode and compress the txList, if the byte length is > maxBytesPerTxList, remove the latest tx and break.
|
// 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 {
|
if err != nil {
|
||||||
log.Trace("Failed to rlp encode and compress the pending transaction %s: %w", tx.Hash(), err)
|
log.Trace("Failed to rlp encode and compress the pending transaction %s: %w", tx.Hash(), err)
|
||||||
txs.Pop()
|
txs.Pop()
|
||||||
|
|
@ -336,8 +336,8 @@ loop:
|
||||||
return lastTransaction
|
return lastTransaction
|
||||||
}
|
}
|
||||||
|
|
||||||
// encodeAndComporeessTxList encodes and compresses the given transactions list.
|
// encodeAndCompressTxList encodes and compresses the given transactions list.
|
||||||
func encodeAndComporeessTxList(txs types.Transactions) ([]byte, error) {
|
func encodeAndCompressTxList(txs types.Transactions) ([]byte, error) {
|
||||||
b, err := rlp.EncodeToBytes(txs)
|
b, err := rlp.EncodeToBytes(txs)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue