protocol: set musig2 to be the stable version

This commit changes the stable protocol version to be the Musig2 protocol.
The experimental version is set to the stable version
in order for the flag to still work if a user has it set.
This commit is contained in:
sputn1ck 2023-04-25 16:06:32 +02:00
parent 39bb43c4e3
commit 960a78be3d
No known key found for this signature in database
GPG key ID: 671103D881A5F0E4
5 changed files with 13 additions and 142 deletions

View file

@ -64,11 +64,11 @@ const (
// stableRPCProtocolVersion defines the current stable RPC protocol
// version.
stableRPCProtocolVersion = looprpc.ProtocolVersion_ROUTING_PLUGIN
stableRPCProtocolVersion = looprpc.ProtocolVersion_MUSIG2
// experimentalRPCProtocolVersion defines the RPC protocol version that
// includes all currently experimentally released features.
experimentalRPCProtocolVersion = looprpc.ProtocolVersion_MUSIG2
experimentalRPCProtocolVersion = stableRPCProtocolVersion
)
var (

View file

@ -25,6 +25,7 @@ func TestProtocolVersionSanity(t *testing.T) {
ProtocolVersionProbe,
ProtocolVersionRoutingPlugin,
ProtocolVersionHtlcV3,
ProtocolVersionMuSig2,
}
rpcVersions := [...]looprpc.ProtocolVersion{
@ -39,6 +40,7 @@ func TestProtocolVersionSanity(t *testing.T) {
looprpc.ProtocolVersion_PROBE,
looprpc.ProtocolVersion_ROUTING_PLUGIN,
looprpc.ProtocolVersion_HTLC_V3,
looprpc.ProtocolVersion_MUSIG2,
}
require.Equal(t, len(versions), len(rpcVersions))
@ -49,7 +51,7 @@ func TestProtocolVersionSanity(t *testing.T) {
// Finally test that the current version contants are up to date
require.Equal(t,
CurrentProtocolVersion(),
versions[len(versions)-2],
versions[len(versions)-1],
)
require.Equal(t,