go-libp2p
go-libp2p copied to clipboard
Protocol ID abbreviation
Implementing https://github.com/libp2p/specs/issues/700 and https://github.com/libp2p/specs/pull/701
- [x] Add a max multistream-select version in Identify message
- [x] If the peer's max version is at least 2, use protocol ID abbreviation when opening a stream (aka multistream-select v2)
- [x] If not, use the old multistream-select v1 when opening a stream
IMPORTANT: Remove the dependency replacement in go.mod before merging the PR