Skip to content

Commit

Permalink
feat(taiko-client): remove an unused file (#17166)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha authored May 14, 2024
1 parent 92b657c commit 5a9b0ec
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 222 deletions.
7 changes: 1 addition & 6 deletions packages/taiko-client/driver/chain_syncer/blob/syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,12 +255,7 @@ func (s *Syncer) onBlockProposed(
}
txListBytes, err := txListFetcher.Fetch(ctx, tx, &event.Meta)
if err != nil {
if errors.Is(err, rpc.ErrBlobInvalid) {
log.Info("Invalid blob detected", "blockID", event.BlockId)
txListBytes = []byte{}
} else {
return fmt.Errorf("failed to fetch tx list: %w", err)
}
return fmt.Errorf("failed to fetch tx list: %w", err)
}

// Decompress the transactions list and try to insert a new head block to L2 EE.
Expand Down
137 changes: 0 additions & 137 deletions packages/taiko-client/pkg/rpc/blob_tx.go

This file was deleted.

74 changes: 0 additions & 74 deletions packages/taiko-client/pkg/rpc/blob_tx_test.go

This file was deleted.

10 changes: 5 additions & 5 deletions packages/taiko-client/proposer/transaction_builder/blob.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ func (b *BlobTransactionBuilder) Build(
includeParentMetaHash bool,
txListBytes []byte,
) (*txmgr.TxCandidate, error) {
// Make a sidecar then calculate the blob hash.
sideCar, err := rpc.MakeSidecar(txListBytes)
if err != nil {
var blob = &eth.Blob{}
if err := blob.FromData(txListBytes); err != nil {
return nil, err
}

var blob = &eth.Blob{}
if err := blob.FromData(txListBytes); err != nil {
// Make a sidecar then calculate the blob hash.
sideCar, _, err := txmgr.MakeSidecar([]*eth.Blob{blob})
if err != nil {
return nil, err
}

Expand Down

0 comments on commit 5a9b0ec

Please sign in to comment.