Skip to content

Commit

Permalink
get right parentblockhash on local blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
potuz committed Nov 7, 2024
1 parent b22febf commit ce0130a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,9 @@ var errNoTerminalBlockHash = errors.New("no terminal block hash")
//
// Otherwise, the terminal block hash is fetched based on the slot's time, and an error is returned if it doesn't exist.
func (vs *Server) getParentBlockHash(ctx context.Context, st state.BeaconState, slot primitives.Slot) ([]byte, error) {
if st.Version() >= version.EPBS {
return st.LatestBlockHash()
}
if st.Version() >= version.Capella {
return getParentBlockHashPostCapella(st)
}
Expand Down

0 comments on commit ce0130a

Please sign in to comment.