You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In py-libp2p, as of right now, there only exists one network implementation, and one
transport implementation: Swarm and TCP.
When the swarm would encounter a multiaddress in it's peerstore with values like udp/9090 or tcp/9090/quic, it would not detect those, and instead fail with multiaddr.exceptions.ProtocolLookupError over here.
How can it be fixed?
Add a generic function under transport/ which iterates over all registered ITransport classes, and add a function to ITransport that accepts one Multiaddr, and returns True when that multiaddress is supported by that transport.
Make Swarm try to acquire that ITransport upon trying a Multiaddr, and fail with SwarmException when there is no ITransport that supports that MultiAddr.
The text was updated successfully, but these errors were encountered:
What was wrong?
In py-libp2p, as of right now, there only exists one network implementation, and one
transport implementation:
Swarm
andTCP
.When the swarm would encounter a multiaddress in it's peerstore with values like
udp/9090
ortcp/9090/quic
, it would not detect those, and instead fail withmultiaddr.exceptions.ProtocolLookupError
over here.How can it be fixed?
Add a generic function under
transport/
which iterates over all registeredITransport
classes, and add a function toITransport
that accepts oneMultiaddr
, and returnsTrue
when that multiaddress is supported by that transport.Make
Swarm
try to acquire thatITransport
upon trying aMultiaddr
, and fail withSwarmException
when there is noITransport
that supports thatMultiAddr
.The text was updated successfully, but these errors were encountered: