Skip to content

Commit 22fc6b1

Browse files
committed
adds a log for block recieved.
1 parent c264cc4 commit 22fc6b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ func (a *API) submitBlock(w http.ResponseWriter, r *http.Request) (int, error) {
315315
if err := json.NewDecoder(r.Body).Decode(&br); err != nil {
316316
return http.StatusBadRequest, err
317317
}
318-
318+
log.Info().Timestamp().Str("block_hash", br.ExecutionPayload.BlockHash.String()).Msg("received block")
319319
if err := a.Service.SubmitBlock(r.Context(), &br); err != nil {
320320
return http.StatusBadRequest, err
321321
}

0 commit comments

Comments
 (0)