Remove truncating peerid when converting to string
This commit is contained in:
parent
daec48b601
commit
702af198f2
|
@ -27,9 +27,7 @@ class ID:
|
|||
|
||||
def __str__(self):
|
||||
pid = self.pretty()
|
||||
if len(pid) <= 10:
|
||||
return "<peer.ID %s>" % pid
|
||||
return "<peer.ID %s*%s>" % (pid[:2], pid[len(pid)-6:])
|
||||
return "<peer.ID %s>" % pid
|
||||
|
||||
__repr__ = __str__
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user