From 052153fdf0335e9a13a2cf482cb233c6007a631c Mon Sep 17 00:00:00 2001 From: Alexander Tesfamichael Date: Fri, 13 Sep 2024 11:42:25 +0200 Subject: [PATCH] feat(service): log where payload was found --- services/api/service.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/api/service.go b/services/api/service.go index 8d1555a3..d36f2ca9 100644 --- a/services/api/service.go +++ b/services/api/service.go @@ -1279,6 +1279,7 @@ func (api *RelayAPI) checkProposerSignature(block *common.VersionedSignedBlinded func getPayloadWithFallbacks(log *logrus.Entry, datastoreRef *datastore.Datastore, slot uint64, proposerPubkey common.PubkeyHex, blockHash phase0.Hash32) (*builderApi.VersionedSubmitBlindedBlockResponse, error) { getPayloadResp, err := datastoreRef.LocalPayloadContents(uint64(slot), proposerPubkey.String(), blockHash.String()) if getPayloadResp != nil { + log.Info("payload found locally") return getPayloadResp, nil } @@ -1294,6 +1295,7 @@ func getPayloadWithFallbacks(log *logrus.Entry, datastoreRef *datastore.Datastor // Check there. getPayloadResp, err = datastoreRef.RedisPayload(log, uint64(slot), proposerPubkey.String(), blockHash.String()) if getPayloadResp != nil { + log.Info("payload found in redis") return getPayloadResp, nil } @@ -1310,6 +1312,7 @@ func getPayloadWithFallbacks(log *logrus.Entry, datastoreRef *datastore.Datastor // Regardless, its possible the other geo does. Check it, so we may help out in publishing, even if it wasn't "our bid". getPayloadResp, err = datastoreRef.RemotePayloadContents(uint64(slot), proposerPubkey.String(), blockHash.String()) if getPayloadResp != nil { + log.Info("payload found remotely") return getPayloadResp, nil }