-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Have an upgrade strategy for the network protocol #1518
Comments
Fixed in #1811 |
That's not really what I had in mind. If we modify the |
#1811 Adds |
Yeah, we have some networking mechanism, but there's no reasonable way in the source code to support two different versions. If someone wants to modify |
encoding |
That's exactly what I wanted to do in #2011 |
The network protocol (the data structures in
network/src/message.rs
) changes from time to time, but we don't have any upgrade strategy. If the networking changes, we will suddenly start dropping peers that don't use the same version.There is a
protocol_version
variable in the source code, but modifying it makes us instantly incompatible with nodes having a different version.Libp2p has a version negotiation system that makes it possible to support multiple version at the same time, but we don't benefit from it.
How to do that without bloating the code is however unclear.
The text was updated successfully, but these errors were encountered: