Skip to content
This repository was archived by the owner on May 11, 2024. It is now read-only.

Commit e8a5f99

Browse files
committed
feat: add tests
1 parent 7b0da7e commit e8a5f99

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

.github/workflows/docker.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: "Push docker image to GCR"
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [main,eip4844-test]
66
tags:
77
- "v*"
88

driver/chain_syncer/calldata/syncer.go

+2
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,8 @@ func (s *Syncer) onBlockProposed(
205205
"l1Height", event.Raw.BlockNumber,
206206
"l1Hash", event.Raw.BlockHash,
207207
"blockID", event.BlockId,
208+
"blobUsed", event.Meta.BlobUsed,
209+
"blobHash", common.Bytes2Hex(event.Meta.BlobHash[:]),
208210
"removed", event.Raw.Removed,
209211
)
210212

driver/txlist_fetcher/blob.go

+8-6
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,15 @@ func (d *BlobFetcher) Fetch(
3535

3636
log.Info("Fetch sidecars", "sidecars", sidecars)
3737

38-
for _, sidecar := range sidecars {
39-
log.Info("Found sidecar", "KzgCommitment", sidecar.KzgCommitment, "blobHash", common.Bytes2Hex(meta.BlobHash[:]))
38+
// for _, sidecar := range sidecars {
39+
// log.Info("Found sidecar", "KzgCommitment", sidecar.KzgCommitment, "blobHash", common.Bytes2Hex(meta.BlobHash[:]))
4040

41-
if sidecar.KzgCommitment == common.Bytes2Hex(meta.BlobHash[:]) {
42-
return common.Hex2Bytes(sidecar.Blob), nil
43-
}
44-
}
41+
// if sidecar.KzgCommitment == common.Bytes2Hex(meta.BlobHash[:]) {
42+
// return common.Hex2Bytes(sidecar.Blob), nil
43+
// }
44+
// }
45+
46+
return common.Hex2Bytes(sidecars[0].Blob), nil
4547

4648
return nil, errSidecarNotFound
4749
}

0 commit comments

Comments
 (0)