Update public source

This commit is contained in:
2026-10-13 10:37:49 +03:00
parent 0ed285e8e5
commit 95b2ec53a9
5 changed files with 153 additions and 24 deletions
+2 -13
View File
@@ -78,27 +78,16 @@ class JobIssuanceService:
def get_search_context_statistics(
self,
handshake_ids: list[int] | tuple[int, ...],
token_hash: str,
method_id: str,
method_version: int,
) -> dict[str, int]:
row = self._handshakes.get_search_context_statistics(
handshake_ids,
token_hash,
method_id,
method_version,
)
if row is None:
return {
"matched_count": 0,
"valid_hash_count": 0,
"found_count": 0,
"covered_count": 0,
"reserved_count": 0,
"available_count": 0,
"unsupported_count": 0,
}
matched_count = int(row["matched_count"] or 0)
valid_hash_count = int(row["valid_hash_count"] or 0)
found_count = int(row["found_count"] or 0)