From 7c630df610a33576fdc0e708590185d3b9298b4c Mon Sep 17 00:00:00 2001 From: Kevin Mai-Husan Chia Date: Wed, 21 Aug 2019 23:17:49 +0800 Subject: [PATCH] Update libp2p/security/insecure/transport.py Co-Authored-By: NIC Lin --- libp2p/security/insecure/transport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libp2p/security/insecure/transport.py b/libp2p/security/insecure/transport.py index 6cb882a..6894cbd 100644 --- a/libp2p/security/insecure/transport.py +++ b/libp2p/security/insecure/transport.py @@ -47,7 +47,7 @@ class InsecureSession(BaseSession): # Nothing is wrong. Store the `pubkey` and `peer_id` in the session. self.remote_permanent_pubkey = remote_pubkey - self.remote_peer_id = ID(remote_msg.id) + self.remote_peer_id = remote_peer_id # TODO: Store `pubkey` and `peer_id` to `PeerStore`