Skip to content

Commit 30d13d1

Browse files
committed
Update pretty hash display to 2 bytes displayed
1 parent 5147609 commit 30d13d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/trinity/core/utils/test_humanize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def test_humanize_elapsed(seconds, expected):
4444
@pytest.mark.parametrize(
4545
'hash32,expected',
4646
(
47-
(bytes(range(32)), '000102..1d1e1f'),
47+
(bytes(range(32)), '0001..1e1f'),
4848
)
4949
)
5050
def test_humanize_hash(hash32, expected):

trinity/utils/humanize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def _humanize_elapsed(seconds: int) -> Iterator[str]:
4848
remainder %= duration
4949

5050

51-
DISPLAY_HASH_BYTES = 3
51+
DISPLAY_HASH_BYTES = 2
5252

5353

5454
def humanize_hash(value: Hash32) -> str:

0 commit comments

Comments
 (0)