mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
libp2p end to end test
This commit is contained in:
@ -10,6 +10,7 @@ class BasicHost(IHost):
|
||||
# default options constructor
|
||||
def __init__(self, _network):
|
||||
self.network = _network
|
||||
self.peerstore = self.network.peerstore
|
||||
# self.stream_handlers = {}
|
||||
|
||||
def get_id(self):
|
||||
@ -24,6 +25,11 @@ class BasicHost(IHost):
|
||||
"""
|
||||
return self.network
|
||||
|
||||
def get_peerstore(self):
|
||||
"""
|
||||
:return: peerstore of the host (same one as in its network instance)
|
||||
"""
|
||||
|
||||
def get_mux(self):
|
||||
"""
|
||||
:return: mux instance of host
|
||||
|
||||
Reference in New Issue
Block a user