Skip to content

Commit c6e3829

Browse files
committed
looprpc: bump protocol version
1 parent 5215222 commit c6e3829

File tree

3 files changed

+67
-54
lines changed

3 files changed

+67
-54
lines changed

looprpc/server.pb.go

Lines changed: 60 additions & 53 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

looprpc/server.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ enum ProtocolVersion {
3131

3232
/// Client may attempt to send the loop out payment in multiple parts.
3333
MULTI_LOOP_OUT = 1;
34+
35+
/**
36+
Loop will use native segwit (P2WSH) htlcs by default, while externally
37+
published htlcs may use native (P2WSH) or nested (NP2WSH) segwit as well.
38+
*/
39+
NATIVE_SEGWIT_LOOP_IN = 2;
3440
}
3541

3642
message ServerLoopOutRequest {

swap_server_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222

2323
// protocolVersion defines the version of the protocol that is currently
2424
// supported by the loop client.
25-
const protocolVersion = looprpc.ProtocolVersion_MULTI_LOOP_OUT
25+
const protocolVersion = looprpc.ProtocolVersion_NATIVE_SEGWIT_LOOP_IN
2626

2727
type swapServerClient interface {
2828
GetLoopOutTerms(ctx context.Context) (

0 commit comments

Comments
 (0)