-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiaddress refactor for issue #20 #58
Conversation
Referenced on project and modified a bunch of files to reference it
QUIC marked as obsolete Renamed MultiaddressBasedProtocolSelector
Thanks a lot for the contribution! Looks great! Could you integrate cs-multiaddress as a git submodule? Feel free to add your fork |
Makes sense.
I have some updates done on the cs-multiaddress but I think I could
implement them as extensions.
Will do!
…On Mon, Dec 4, 2023, 06:25 Alexey ***@***.***> wrote:
Thanks a lot for the contribution! Looks great!
Could you integrate cs-multiaddress as a git submodule?
Could you remove that old implementation please? I mean MultiAddr
<https://github.com/JuanuMusic/dotnet-libp2p/blob/multiaddress-refactor/src/libp2p/Libp2p.Core/Multiaddr.cs>
—
Reply to this email directly, view it on GitHub
<#58 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAN2GXFZW6HDMCZ7REUKWJLYHWJIJAVCNFSM6AAAAABAECUBFKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZYGE2DKOBTGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Understood. Im gettng errors actuallly by .net7 not having support for it. |
{ | ||
protocol = channelFactory!.SubProtocols.FirstOrDefault(proto => proto.Id.Contains("quic")) ?? throw new ApplicationException("QUIC is not supported"); | ||
} | ||
else if (context.LocalPeer.Address.Has<QUICv1>()) | ||
{ | ||
protocol = channelFactory!.SubProtocols.FirstOrDefault(proto => proto.Id.Contains("quic-v1")) ?? throw new ApplicationException("QUICv1 is not supported"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QUIC
should be declined without an attempt to search for it.
It may work, but you need to customize your .NET: https://github.com/NethermindEth/dotnet-libp2p/blob/main/src/libp2p/Libp2p.Protocols.Quic/README.md. It's a pity that we need such manipulations, but for now it's the only way and a known .NET issue. |
@flcl42 Looks like the tests failed because of a Server error on nuget. Might have been a temporary issue on their servers? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. We can make submodule from cs-multiaddress in a separate pr
Hmmm I added it as a git submodule, but looks like its just taking it as files from the same repo. |
Merged! Thanks a lot! |
Replaced
Multiaddr
withMultiformats.Multiaddress
project.Chat sample working.
All tests passing.
SOLVES: #20