looprpc: bump protocol version

pull/184/head
Andras Banki-Horvath 4 years ago
parent 5215222ced
commit c6e3829acd

@ -35,16 +35,22 @@ const (
ProtocolVersion_LEGACY ProtocolVersion = 0 ProtocolVersion_LEGACY ProtocolVersion = 0
/// Client may attempt to send the loop out payment in multiple parts. /// Client may attempt to send the loop out payment in multiple parts.
ProtocolVersion_MULTI_LOOP_OUT ProtocolVersion = 1 ProtocolVersion_MULTI_LOOP_OUT ProtocolVersion = 1
//*
//Loop will use native segwit (P2WSH) htlcs by default, while externally
//published htlcs may use native (P2WSH) or nested (NP2WSH) segwit as well.
ProtocolVersion_NATIVE_SEGWIT_LOOP_IN ProtocolVersion = 2
) )
var ProtocolVersion_name = map[int32]string{ var ProtocolVersion_name = map[int32]string{
0: "LEGACY", 0: "LEGACY",
1: "MULTI_LOOP_OUT", 1: "MULTI_LOOP_OUT",
2: "NATIVE_SEGWIT_LOOP_IN",
} }
var ProtocolVersion_value = map[string]int32{ var ProtocolVersion_value = map[string]int32{
"LEGACY": 0, "LEGACY": 0,
"MULTI_LOOP_OUT": 1, "MULTI_LOOP_OUT": 1,
"NATIVE_SEGWIT_LOOP_IN": 2,
} }
func (x ProtocolVersion) String() string { func (x ProtocolVersion) String() string {
@ -784,57 +790,58 @@ func init() {
func init() { proto.RegisterFile("server.proto", fileDescriptor_ad098daeda4239f7) } func init() { proto.RegisterFile("server.proto", fileDescriptor_ad098daeda4239f7) }
var fileDescriptor_ad098daeda4239f7 = []byte{ var fileDescriptor_ad098daeda4239f7 = []byte{
// 786 bytes of a gzipped FileDescriptorProto // 810 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xdd, 0x52, 0xda, 0x40, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xdd, 0x52, 0xe2, 0x48,
0x14, 0x6e, 0x02, 0x82, 0x1c, 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x36, 0x6e, 0x83, 0x78, 0x5d, 0xcf, 0x01, 0x1b, 0xdd, 0x95, 0x6a, 0x75, 0x31, 0x04, 0x75, 0xa0, 0xe0, 0xeb, 0x6d, 0x8b, 0xe1, 0xa2,
0x33, 0x62, 0x39, 0x5f, 0xff, 0x0f, 0x00, 0x00, 0xff, 0xff, 0xd4, 0x54, 0xd0, 0xf3, 0xcd, 0x09, 0xad, 0x44, 0x70, 0x70, 0x54, 0x6d, 0x41, 0xd7, 0x17, 0xdb, 0x0b, 0xb8, 0x49, 0xaa, 0xc9, 0xdc,
0x00, 0x00, 0x22, 0x52, 0x1b, 0xcf, 0x41, 0xe4, 0xa9, 0xb7, 0x19, 0xb1, 0xb7, 0x7f, 0xfe, 0x08, 0x00, 0x00,
0xff, 0xff, 0xd3, 0x5d, 0x9c, 0x31, 0xe8, 0x09, 0x00, 0x00,
} }
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.

@ -31,6 +31,12 @@ enum ProtocolVersion {
/// Client may attempt to send the loop out payment in multiple parts. /// Client may attempt to send the loop out payment in multiple parts.
MULTI_LOOP_OUT = 1; MULTI_LOOP_OUT = 1;
/**
Loop will use native segwit (P2WSH) htlcs by default, while externally
published htlcs may use native (P2WSH) or nested (NP2WSH) segwit as well.
*/
NATIVE_SEGWIT_LOOP_IN = 2;
} }
message ServerLoopOutRequest { message ServerLoopOutRequest {

@ -22,7 +22,7 @@ import (
// protocolVersion defines the version of the protocol that is currently // protocolVersion defines the version of the protocol that is currently
// supported by the loop client. // supported by the loop client.
const protocolVersion = looprpc.ProtocolVersion_MULTI_LOOP_OUT const protocolVersion = looprpc.ProtocolVersion_NATIVE_SEGWIT_LOOP_IN
type swapServerClient interface { type swapServerClient interface {
GetLoopOutTerms(ctx context.Context) ( GetLoopOutTerms(ctx context.Context) (

Loading…
Cancel
Save