Fetch the initial STH record from the CT Log.
(logger, url, jobs_manager)
| 123 | |
| 124 | |
| 125 | def fetch_sth(logger, url, jobs_manager): |
| 126 | """ |
| 127 | Fetch the initial STH record from the CT Log. |
| 128 | """ |
| 129 | result = make_https_request(logger, url + "/ct/v1/get-sth", jobs_manager) |
| 130 | if result is None: |
| 131 | return None |
| 132 | else: |
| 133 | return json.loads(result) |
| 134 | |
| 135 | |
| 136 | def set_last_index(last_index_collection, source, index, job_number): |
no test coverage detected