diff --git a/libp2p/security/base_session.py b/libp2p/security/base_session.py index e91bc30..01450be 100644 --- a/libp2p/security/base_session.py +++ b/libp2p/security/base_session.py @@ -20,14 +20,14 @@ class BaseSession(ISecureConn): self, local_peer: ID, local_private_key: PrivateKey, - initiator: bool, + is_initiator: bool, peer_id: Optional[ID] = None, ) -> None: self.local_peer = local_peer self.local_private_key = local_private_key self.remote_peer_id = peer_id self.remote_permanent_pubkey = None - self.initiator = initiator + self.is_initiator = is_initiator def get_local_peer(self) -> ID: return self.local_peer