-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
add an integration test for muxer selection #1887
Conversation
fyi I moved the base to |
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.
lg, one nit.
@@ -182,6 +182,7 @@ func (cfg *Config) addTransports(h host.Host) error { | |||
fx.ParamTags(`group:"security"`), | |||
)), | |||
fx.Supply(cfg.Muxers), | |||
fx.Supply(h.ID()), |
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.
Why this change? Did this not work before?
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.
The insecure transport consume the peer.ID
:
go-libp2p/core/sec/insecure/insecure.go
Line 43 in d8d2efa
func NewWithIdentity(protocolID protocol.ID, id peer.ID, key ci.PrivKey) *Transport { |
The other transports consume the private key.
96ccea1
to
167ad7d
Compare
This is needed to construct the insecure transport.
b36079e
to
4b74c65
Compare
Rebased and changed merge target back to |
Fixes #1836. Depends on #1885. Closes #1851. Closes #1840.
The test currently fails since apparently the early muxer negotiation respects the server's preferences, not the client's. We should fix that. Will do in another PR.