From 3a623e8836984b599af7775705d6ad328a1c89bb Mon Sep 17 00:00:00 2001 From: welkin22 Date: Mon, 29 Apr 2024 21:11:49 +0800 Subject: [PATCH] fix blob error --- op-service/eth/blobs_api.go | 10 +++++----- op-service/sources/l1_client.go | 1 - 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/op-service/eth/blobs_api.go b/op-service/eth/blobs_api.go index 6ab3167d65..14b7393522 100644 --- a/op-service/eth/blobs_api.go +++ b/op-service/eth/blobs_api.go @@ -79,11 +79,11 @@ type BSCBlobTxSidecar struct { } type BSCBlobSidecar struct { - BSCBlobTxSidecar - BlockNumber *hexutil.Big `json:"blockNumber"` - BlockHash common.Hash `json:"blockHash"` - TxIndex *hexutil.Uint64 `json:"transactionIndex"` - TxHash common.Hash `json:"transactionHash"` + BSCBlobTxSidecar `json:"blobSidecar"` + BlockNumber *hexutil.Big `json:"blockNumber"` + BlockHash common.Hash `json:"blockHash"` + TxIndex *hexutil.Uint64 `json:"txIndex"` + TxHash common.Hash `json:"txHash"` } type BSCBlobSidecars []*BSCBlobSidecar diff --git a/op-service/sources/l1_client.go b/op-service/sources/l1_client.go index 97b0b0769c..fc69d061c4 100644 --- a/op-service/sources/l1_client.go +++ b/op-service/sources/l1_client.go @@ -292,7 +292,6 @@ func (s *L1Client) getBlobSidecars(ctx context.Context, ref eth.L1BlockRef) (eth if blobSidecars == nil { return nil, ethereum.NotFound } - s.log.Debug("receive blobSidecars", "blob", blobSidecars) return blobSidecars, nil }