perf: speed up the code hash with sha1 and a plain file reader

This commit is contained in:
imSp4rky
2026-07-30 17:11:18 -06:00
parent c14277e6dc
commit e9a40a3af3
2 changed files with 10 additions and 7 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ pytestmark = pytest.mark.unit
def test_is_hex_and_stable() -> None:
first = code_hash()
assert len(first) == 32
assert len(first) == 40
assert int(first, 16) >= 0
assert first == code_hash()