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

feat(taiko-client): remove an unused file #17166

Merged
merged 1 commit into from
May 14, 2024
Merged
Show file tree
Hide file tree
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
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
Loading