From 4e9454f88af4e252fce0c0a625de72296a23dfa4 Mon Sep 17 00:00:00 2001 From: Niclas Blomberg Date: Mon, 12 Feb 2024 17:31:49 +0100 Subject: [PATCH] feat: try second attempt for payload from redis --- services/api/service.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/api/service.go b/services/api/service.go index 5f1cc502..1633c6a6 100644 --- a/services/api/service.go +++ b/services/api/service.go @@ -1554,9 +1554,9 @@ func (api *RelayAPI) handleGetPayload(w http.ResponseWriter, req *http.Request) if err != nil || getPayloadResp == nil { log.WithError(err).Warn("failed first attempt to get execution payload") - // Wait, then try again. + // Wait, then try again (this time from Redis) time.Sleep(time.Duration(timeoutGetPayloadRetryMs) * time.Millisecond) - getPayloadResp, err = datastore.GetPayloadContents(uint64(slot), proposerPubkey.String(), blockHash.String()) + getPayloadResp, err = api.datastore.GetGetPayloadResponse(log, uint64(slot), proposerPubkey.String(), blockHash.String()) if err != nil || getPayloadResp == nil { // Still not found! Error out now.