mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-09-04 10:04:54 -05:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user