Skip to content

Commit

Permalink
chore(taiko-client): updates for hekla taiko-client
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha committed May 9, 2024
1 parent a659417 commit 8c98018
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/taiko-client-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "Push docker image to GAR"

on:
push:
branches: [main]
branches: [main, hekla-taiko-client]
tags:
- "taiko-client-v*"
paths:
Expand Down Expand Up @@ -35,11 +35,12 @@ jobs:
uses: docker/metadata-action@v4
with:
images: |
us-docker.pkg.dev/evmchain/images/taiko-client
us-docker.pkg.dev/evmchain/hekla/taiko-client
tags: |
type=ref,event=branch
type=ref,event=pr
type=ref,event=tag
type=raw,value=hekla
type=sha
- name: Cache Go build
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,6 @@ func (v *TxListDecompressor) TryDecompress(
return []byte{}
}

// If calldata is used, the compressed bytes of the transaction list must be
// less than or equal to maxBytesPerTxList.
if !blobUsed && (len(txListBytes) > int(v.maxBytesPerTxList)) {
log.Info("Compressed transactions list binary too large", "length", len(txListBytes), "blockID", blockID)
return []byte{}
}

var (
txs types.Transactions
err error
Expand All @@ -66,6 +59,13 @@ func (v *TxListDecompressor) TryDecompress(
return []byte{}
}

// If calldata is used, the compressed bytes of the transaction list must be
// less than or equal to maxBytesPerTxList.
if !blobUsed && (len(txListBytes) > int(v.maxBytesPerTxList)) {
log.Info("Compressed transactions list binary too large", "length", len(txListBytes), "blockID", blockID)
return []byte{}
}

// Try to RLP decode the transaction list bytes.
if err = rlp.DecodeBytes(txListBytes, &txs); err != nil {
log.Info("Failed to decode transactions list bytes", "blockID", blockID, "error", err)
Expand Down

0 comments on commit 8c98018

Please sign in to comment.