mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
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:
parent
39bb43c4e3
commit
960a78be3d
5 changed files with 13 additions and 142 deletions
|
|
@ -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 (
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue