Skip to content

Commit 8b8c558

Browse files
committed
when not found blob return error
1 parent 20e5ef4 commit 8b8c558

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

node/derivation/derivation.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,8 @@ func (d *Derivation) fetchRollupDataByTxHash(txHash common.Hash, blockNumber uin
376376
d.logger.Info("Blob matching results", "matched", matchedCount, "expected", len(blobHashes))
377377
if matchedCount > 0 {
378378
batch.Sidecar = blobTxSidecar
379+
} else {
380+
return nil, fmt.Errorf("no matching versionedHash was found")
379381
}
380382
} else {
381383
return nil, fmt.Errorf("not matched blob,txHash:%v,blockNumber:%v", txHash, blockNumber)

0 commit comments

Comments
 (0)