Remove truncating peerid when converting to string

This commit is contained in:
Stuckinaboot 2019-05-08 20:19:02 -04:00
parent 8bdcc63296
commit ae44c062df

View File

@ -27,9 +27,7 @@ class ID:
def __str__(self): def __str__(self):
pid = self.pretty() pid = self.pretty()
if len(pid) <= 10: return "<peer.ID %s>" % pid
return "<peer.ID %s>" % pid
return "<peer.ID %s*%s>" % (pid[:2], pid[len(pid)-6:])
__repr__ = __str__ __repr__ = __str__