From ae44c062df93f06ff307bf88bbe29b50c36c9546 Mon Sep 17 00:00:00 2001 From: Stuckinaboot Date: Wed, 8 May 2019 20:19:02 -0400 Subject: [PATCH] Remove truncating peerid when converting to string --- libp2p/peer/id.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libp2p/peer/id.py b/libp2p/peer/id.py index 47d7cf5..a46c462 100644 --- a/libp2p/peer/id.py +++ b/libp2p/peer/id.py @@ -27,9 +27,7 @@ class ID: def __str__(self): pid = self.pretty() - if len(pid) <= 10: - return "" % pid - return "" % (pid[:2], pid[len(pid)-6:]) + return "" % pid __repr__ = __str__