Skip to content

Commit 01573fd

Browse files
authored
Fix panic on GetEthV1BeaconBlobs (#17992)
closes #17990
1 parent de0a13d commit 01573fd

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

cl/beacon/handler/handler.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ func NewApiHandler(
150150
builderClient builder.BuilderClient,
151151
caplinStateSnapshots *snapshotsync.CaplinStateSnapshots,
152152
enableMemoizedHeadState bool,
153+
peerDas das.PeerDas,
153154
) *ApiHandler {
154155
blobBundles, err := lru.New[common.Bytes48, BlobBundle]("blobs", maxBlobBundleCacheSize)
155156
if err != nil {
@@ -174,6 +175,7 @@ func NewApiHandler(
174175
syncedData: syncedData,
175176
stateReader: stateReader,
176177
caplinStateSnapshots: caplinStateSnapshots,
178+
peerDas: peerDas,
177179
slotWaitedForAttestationProduction: slotWaitedForAttestationProduction,
178180
randaoMixesPool: sync.Pool{New: func() interface{} {
179181
return solid.NewHashVector(int(beaconChainConfig.EpochsPerHistoricalVector))

cl/beacon/handler/utils_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ func setupTestingHandler(t *testing.T, v clparams.StateVersion, logger log.Logge
178178
nil,
179179
nil,
180180
false,
181+
nil,
181182
) // TODO: add tests
182183
h.Init()
183184
return

cl/beacon/handler/validator_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ func (t *validatorTestSuite) SetupTest() {
7777
nil,
7878
nil,
7979
false,
80+
nil,
8081
)
8182
t.gomockCtrl = gomockCtrl
8283
}

cmd/caplin/caplin1/run.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,7 @@ func RunCaplinService(ctx context.Context, engine execution_client.ExecutionEngi
453453
option.builderClient,
454454
stateSnapshots,
455455
true,
456+
peerDas,
456457
)
457458
go beacon.ListenAndServe(&beacon.LayeredBeaconHandler{
458459
ArchiveApi: apiHandler,

0 commit comments

Comments
 (0)