Skip to content

Commit

Permalink
Fix dependent root retrival for first epoch (#14059)
Browse files Browse the repository at this point in the history
  • Loading branch information
terencechain authored May 30, 2024
1 parent 6fddd13 commit 82f0ea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beacon-chain/rpc/eth/validator/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 82f0ea5

Please sign in to comment.