diff --git a/node/derivation/derivation.go b/node/derivation/derivation.go index 95edf84c..25afbc0d 100644 --- a/node/derivation/derivation.go +++ b/node/derivation/derivation.go @@ -374,9 +374,10 @@ func (d *Derivation) fetchRollupDataByTxHash(txHash common.Hash, blockNumber uin } d.logger.Info("Blob matching results", "matched", matchedCount, "expected", len(blobHashes)) - if matchedCount > 0 { - batch.Sidecar = blobTxSidecar + if matchedCount == 0 { + return nil, fmt.Errorf("no matching versionedHash was found") } + batch.Sidecar = blobTxSidecar } else { return nil, fmt.Errorf("not matched blob,txHash:%v,blockNumber:%v", txHash, blockNumber) }