correct Announcement.__str__() to present hex (#14740)

A hash is quite unlikely to be valid UTF-8 data and even if it does decode it seems unlikely to be a useful representation.
This commit is contained in:
Kyle Altendorf
2023-03-05 16:00:37 -06:00
committed by GitHub
parent 131c5ec5bf
commit 2c000a45eb
+1 -1
View File
@@ -21,4 +21,4 @@ class Announcement:
return std_hash(bytes(self.origin_info + message))
def __str__(self):
return self.name().decode("utf-8")
return self.name().hex()