Skip to content

Commit

Permalink
chore: add log on successful submission of snapshot to sequencer
Browse files Browse the repository at this point in the history
  • Loading branch information
anomit committed Oct 16, 2024
1 parent 5892875 commit 3ce553e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkgs/service/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@ func (s *server) SubmitSnapshot(stream pkgs.Submission_SubmitSnapshotServer) err
return stream.Send(&pkgs.SubmissionResponse{Message: "Failure: " + submissionId.String()})
}
log.Debugln("Stream write successful for ID: ", submissionId.String(), "for Epoch:", submission.Request.EpochId, "Slot:", submission.Request.SlotId)
if submission.Request.EpochId == 0 {
log.Debugln("✅ Simulation snapshot submitted successfully to sequencer:", submissionId.String())
} else {
log.Debugln("✅ Snapshot submitted successfully to sequencer: ", submissionId.String())
}
return stream.Send(&pkgs.SubmissionResponse{Message: "Success: " + submissionId.String()})
}
}
Expand Down

0 comments on commit 3ce553e

Please sign in to comment.