Fix dependent root retrival for first epoch (#14059)

This commit is contained in:
terence
2024-05-29 21:15:00 -07:00
committed by GitHub
parent 6fddd13cb2
commit 82f0ea5b11

View File

@@ -709,7 +709,7 @@ func (s *Server) GetAttesterDuties(w http.ResponseWriter, r *http.Request) {
}
var dependentRoot []byte
if requestedEpoch == 0 {
if requestedEpoch <= 1 {
r, err := s.BeaconDB.GenesisBlockRoot(ctx)
if err != nil {
httputil.HandleError(w, "Could not get genesis block root: "+err.Error(), http.StatusInternalServerError)