func (s *State) GetRecentBlockHash(slotToGet uint64, c *config.Config) (*chainhash.Hash, error) {
	if s.Slot-slotToGet >= c.LatestBlockRootsLength {
		return nil, errors.New("can't fetch block hash from more than LatestBlockRootsLength")
	}

	return &s.LatestBlockHashes[slotToGet%c.LatestBlockRootsLength], nil
}
// GetRecentBlockHash gets block hashes from the LatestBlockHashes array.
GetRecentBlockHash gets block hashes from the LatestBlockHashes array.
// GetRecentBlockHash gets block hashes from the LatestBlockHashes array .
func (s *State) GetRecentBlockHash(slotToGet uint64, c *config.Config) (*chainhash.Hash, error) {
	if s.Slot-slotToGet >= c.LatestBlockRootsLength {
		return nil, errors.New("can't fetch block hash from more than LatestBlockRootsLength")
	}
	return &s.LatestBlockHashes[slotToGet%c.LatestBlockRootsLength], nil
}
func ( s * State ) GetRecentBlockHash ( slotToGet uint64 , c * config . Config ) ( * chainhash . Hash , error ) { if s . Slot - slotToGet >= c . LatestBlockRootsLength { return nil , errors . New ( " " ) } return & s . LatestBlockHashes [ slotToGet % c . LatestBlockRootsLength ] , nil }
GetRecentBlockHash gets block hashes from the LatestBlockHashes array.
GetRecentBlockHash gets block hashes from the LatestBlockHashes array .