Repository: lightningnetwork/lnd
Pull request #4190 (2020-04-14 10:44:23)

make+lnd+config: fix Windows build and version string
#4163 changed the way the `-ldflags` are assembled in a way that the Windows shell doesn't like (escaping a quote doesn't work the same way as in any other _sane_ shell).

Also the `build.Version()` used to return the version and the commit. Currently when building master, the `--version` flag of both `lnd` and `lncli` don't show the commit anymore. This PR also fixes that problem.


Patch:
diff --git a/Makefile b/Makefile
index 4f3ddbba7..5df705078 100644
--- a/Makefile
+++ b/Makefile
@@ -52,10 +52,10 @@ include make/testing_flags.mk
 
 DEV_TAGS := $(if ${tags},$(DEV_TAGS) ${tags},$(DEV_TAGS))
 
-make_ldflags = $(shell echo -ldflags \"-X $(PKG)/build.Commit=$(COMMIT) \
+make_ldflags = -ldflags "$(shell echo -X $(PKG)/build.Commit=$(COMMIT) \
 	-X $(PKG)/build.CommitHash=$(COMMIT_HASH) \
 	-X $(PKG)/build.GoVersion=$(GOVERSION) \
-	-X $(PKG)/build.RawTags=$(shell echo $(1) | sed -e 's/ /,/g')\")
+	-X $(PKG)/build.RawTags=$(shell echo $(1) | sed -e 's/ /,/g'))"
 
 LDFLAGS := $(call make_ldflags, ${tags})
 DEV_LDFLAGS := $(call make_ldflags, $(DEV_TAGS))
diff --git a/cmd/lncli/cmd_pay.go b/cmd/lncli/cmd_pay.go
index 78f5167e1..426c75166 100644
--- a/cmd/lncli/cmd_pay.go
+++ b/cmd/lncli/cmd_pay.go
@@ -53,8 +53,8 @@ var (
 			"displayed",
 	}
 
-	maxShardsFlag = cli.UintFlag{
-		Name: "max_shards",
+	maxHtlcsFlag = cli.UintFlag{
+		Name: "max_htlcs",
 		Usage: "the maximum number of partial payments that may be " +
 			"used",
 		Value: 1,
@@ -95,7 +95,7 @@ func paymentFlags() []cli.Flag {
 			Name:  "allow_self_payment",
 			Usage: "allow sending a circular payment to self",
 		},
-		dataFlag, showInflightFlag, maxShardsFlag,
+		dataFlag, showInflightFlag, maxHtlcsFlag,
 	}
 }
 
@@ -325,7 +325,7 @@ func sendPaymentRequest(ctx *cli.Context,
 
 	req.AllowSelfPayment = ctx.Bool("allow_self_payment")
 
-	req.MaxShards = uint32(ctx.Uint(maxShardsFlag.Name))
+	req.MaxHtlcs = uint32(ctx.Uint(maxHtlcsFlag.Name))
 
 	// Parse custom data records.
 	data := ctx.String(dataFlag.Name)
diff --git a/cmd/lncli/main.go b/cmd/lncli/main.go
index a88fc926d..52d64ada7 100644
--- a/cmd/lncli/main.go
+++ b/cmd/lncli/main.go
@@ -205,7 +205,7 @@ func extractPathArgs(ctx *cli.Context) (string, string, error) {
 func main() {
 	app := cli.NewApp()
 	app.Name = "lncli"
-	app.Version = build.Version()
+	app.Version = build.Version() + " commit=" + build.Commit
 	app.Usage = "control plane for your Lightning Network Daemon (lnd)"
 	app.Flags = []cli.Flag{
 		cli.StringFlag{
diff --git a/config.go b/config.go
index 773c5d00b..6816b0e81 100644
--- a/config.go
+++ b/config.go
@@ -478,7 +478,8 @@ func loadConfig() (*config, error) {
 	appName = strings.TrimSuffix(appName, filepath.Ext(appName))
 	usageMessage := fmt.Sprintf("Use %s -h to show usage", appName)
 	if preCfg.ShowVersion {
-		fmt.Println(appName, "version", build.Version())
+		fmt.Println(appName, "version", build.Version(),
+			"commit="+build.Commit)
 		os.Exit(0)
 	}
 
diff --git a/lnd.go b/lnd.go
index 875f0e737..faffac1f1 100644
--- a/lnd.go
+++ b/lnd.go
@@ -170,8 +170,9 @@ func Main(lisCfg ListenerCfg) error {
 	}()
 
 	// Show version at startup.
-	ltndLog.Infof("Version: %s, build=%s, logging=%s",
-		build.Version(), build.Deployment, build.LoggingType)
+	ltndLog.Infof("Version: %s commit=%s, build=%s, logging=%s",
+		build.Version(), build.Commit, build.Deployment,
+		build.LoggingType)
 
 	var network string
 	switch {
diff --git a/lnrpc/routerrpc/router.pb.go b/lnrpc/routerrpc/router.pb.go
index c5d8feae3..018c3d8c3 100644
--- a/lnrpc/routerrpc/router.pb.go
+++ b/lnrpc/routerrpc/router.pb.go
@@ -225,7 +225,7 @@ type SendPaymentRequest struct {
 	//*
 	//The maximum number of partial payments that may be use to complete the full
 	//amount.
-	MaxShards            uint32   `protobuf:"varint,17,opt,name=max_shards,json=maxShards,proto3" json:"max_shards,omitempty"`
+	MaxHtlcs             uint32   `protobuf:"varint,17,opt,name=max_htlcs,json=maxHtlcs,proto3" json:"max_htlcs,omitempty"`
 	XXX_NoUnkeyedLiteral struct{} `json:"-"`
 	XXX_unrecognized     []byte   `json:"-"`
 	XXX_sizecache        int32    `json:"-"`
@@ -368,9 +368,9 @@ func (m *SendPaymentRequest) GetDestFeatures() []lnrpc.FeatureBit {
 	return nil
 }
 
-func (m *SendPaymentRequest) GetMaxShards() uint32 {
+func (m *SendPaymentRequest) GetMaxHtlcs() uint32 {
 	if m != nil {
-		return m.MaxShards
+		return m.MaxHtlcs
 	}
 	return 0
 }
@@ -1606,135 +1606,135 @@ func init() {
 func init() { proto.RegisterFile("routerrpc/router.proto", fileDescriptor_7a0613f69d37b0a5) }
 
 var fileDescriptor_7a0613f69d37b0a5 = []byte{
-	// 2040 bytes of a gzipped FileDescriptorProto
+	// 2039 bytes of a gzipped FileDescriptorProto
 	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x58, 0xcd, 0x76, 0xdb, 0xc6,
 	0x15, 0x0e, 0x44, 0x50, 0x22, 0x2f, 0xff, 0xa0, 0xa1, 0x23, 0xb3, 0x54, 0x9c, 0x32, 0x68, 0x63,
 	0xf3, 0xb8, 0xae, 0xe4, 0xa8, 0x3d, 0xad, 0x4f, 0xdb, 0xb8, 0xa5, 0x08, 0x28, 0x82, 0x45, 0x01,
 	0xcc, 0x10, 0xb2, 0x9d, 0x7a, 0x31, 0x07, 0x22, 0x87, 0x22, 0x2a, 0xfc, 0xb0, 0xc0, 0xd0, 0x8e,
-	0x96, 0xdd, 0xf6, 0x05, 0xfa, 0x08, 0x7d, 0x89, 0xbe, 0x4b, 0xb7, 0xdd,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x7f, 0x07, 0xca, 0xed, 0xc7, 0x1d, 0x52, 0x6f,
+	0xcf, 0xbd, 0xfb, 0xca, 0x6c, 0xff, 0xec, 0xa3, 0x9c, 0xd4, 0xb9, 0x01, 0xb0, 0x7a, 0x22, 0xa1,
+	0xcf, 0x72, 0x53, 0xee, 0x3c, 0xf1, 0xda, 0x8f, 0xee, 0xb1, 0xa6, 0xae, 0x6c, 0x68, 0x6e, 0x78,
+	0x33, 0xad, 0xed, 0xc6, 0xfd, 0x6f, 0xaa, 0xf6, 0x83, 0x4d, 0x4f, 0x8b, 0xe7, 0xd2, 0xf1, 0x57,
+	0x7f, 0x3e, 0xbc, 0x72, 0xd9, 0x6c, 0x71, 0x79, 0x30, 0x0e, 0xfd, 0x43, 0xcf, 0xbd, 0x9a, 0xb1,
+	0xc0, 0x0d, 0xae, 0x02, 0xca, 0x3e, 0x84, 0xd1, 0xf5, 0xa1, 0x17, 0x4c, 0x0e, 0x85, 0x2e, 0x0f,
+	0x97, 0xd3, 0x2f, 0xb7, 0xc5, 0x1f, 0x96, 0x7e, 0xf5, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0x5f,
+	0x5a, 0x7c, 0x81, 0x88, 0x12, 0x00, 0x00,
 }
 
 // Reference imports to suppress errors if they are not otherwise used.
diff --git a/lnrpc/routerrpc/router.proto b/lnrpc/routerrpc/router.proto
index 5bf947ade..25e47d999 100644
--- a/lnrpc/routerrpc/router.proto
+++ b/lnrpc/routerrpc/router.proto
@@ -119,7 +119,7 @@ message SendPaymentRequest {
     The maximum number of partial payments that may be use to complete the full
     amount.
     */
-    uint32 max_shards = 17;
+    uint32 max_htlcs = 17;
 }
 
 message TrackPaymentRequest {
diff --git a/lnrpc/routerrpc/router_backend.go b/lnrpc/routerrpc/router_backend.go
index 2803f4472..2d2be75b1 100644
--- a/lnrpc/routerrpc/router_backend.go
+++ b/lnrpc/routerrpc/router_backend.go
@@ -549,11 +549,11 @@ func (r *RouterBackend) extractIntentFromSendRequest(
 
 	// Take max htlcs from the request. Map zero to one for backwards
 	// compatibility.
-	maxShards := rpcPayReq.MaxShards
-	if maxShards == 0 {
-		maxShards = 1
+	maxHtlcs := rpcPayReq.MaxHtlcs
+	if maxHtlcs == 0 {
+		maxHtlcs = 1
 	}
-	payIntent.MaxShards = maxShards
+	payIntent.MaxHtlcs = maxHtlcs
 
 	// Take fee limit from request.
 	payIntent.FeeLimit, err = lnrpc.UnmarshallAmt(
diff --git a/routing/payment_session.go b/routing/payment_session.go
index c5a20f7a1..d06356e7e 100644
--- a/routing/payment_session.go
+++ b/routing/payment_session.go
@@ -211,7 +211,7 @@ func (p *paymentSession) RequestRoute(maxAmt, feeLimit lnwire.MilliSatoshi,
 		switch {
 		case err == errNoPathFound:
 			// No splitting if this is the last shard.
-			isLastShard := activeShards+1 >= p.payment.MaxShards
+			isLastShard := activeShards+1 >= p.payment.MaxHtlcs
 			if isLastShard {
 				return nil, errNoPathFound
 			}
diff --git a/routing/router.go b/routing/router.go
index 2d286ce53..d93c38302 100644
--- a/routing/router.go
+++ b/routing/router.go
@@ -1625,9 +1625,9 @@ type LightningPayment struct {
 	// fail.
 	DestCustomRecords record.CustomSet
 
-	// MaxShards is the maximum number of partial payments that may be used
-	// to complete the full amount.
-	MaxShards uint32
+	// MaxHtlcs is the maximum number of partial payments that may be use to
+	// complete the full amount.
+	MaxHtlcs uint32
 }
 
 // SendPayment attempts to send a payment as described within the passed
diff --git a/rpcserver.go b/rpcserver.go
index 29f40d7a7..666a5fb22 100644
--- a/rpcserver.go
+++ b/rpcserver.go
@@ -3966,7 +3966,7 @@ func (r *rpcServer) dispatchPaymentIntent(
 
 			// Don't enable multi-part payments on the main rpc.
 			// Users need to use routerrpc for that.
-			MaxShards: 1,
+			MaxHtlcs: 1,
 		}
 
 		preImage, route, routerErr = r.server.chanRouter.SendPayment(


Test patch:
diff --git a/lntest/itest/lnd_send_multi_path_payment.go b/lntest/itest/lnd_send_multi_path_payment.go
index 318f25568..b70564f07 100644
--- a/lntest/itest/lnd_send_multi_path_payment.go
+++ b/lntest/itest/lnd_send_multi_path_payment.go
@@ -74,7 +74,7 @@ func testSendMultiPathPayment(net *lntest.NetworkHarness, t *harnessTest) {
 		t, net.Alice,
 		&routerrpc.SendPaymentRequest{
 			PaymentRequest: payReq,
-			MaxShards:      10,
+			MaxHtlcs:       10,
 			TimeoutSeconds: 60,
 			FeeLimitMsat:   noFeeLimitMsat,
 		},
diff --git a/routing/integrated_routing_context_test.go b/routing/integrated_routing_context_test.go
index 457ed4f46..4ab395e71 100644
--- a/routing/integrated_routing_context_test.go
+++ b/routing/integrated_routing_context_test.go
@@ -88,7 +88,7 @@ func (h htlcAttempt) String() string {
 
 // testPayment launches a test payment and asserts that it is completed after
 // the expected number of attempts.
-func (c *integratedRoutingContext) testPayment(maxShards uint32) ([]htlcAttempt,
+func (c *integratedRoutingContext) testPayment(maxHtlcs uint32) ([]htlcAttempt,
 	error) {
 
 	var (
@@ -137,7 +137,7 @@ func (c *integratedRoutingContext) testPayment(maxShards uint32) ([]htlcAttempt,
 		DestFeatures:   lnwire.NewFeatureVector(mppFeatures, nil),
 		Amount:         c.amt,
 		CltvLimit:      math.MaxUint32,
-		MaxShards:      maxShards,
+		MaxHtlcs:       maxHtlcs,
 	}
 
 	session := &paymentSession{
diff --git a/routing/integrated_routing_test.go b/routing/integrated_routing_test.go
index 2fdf7136e..fb5d22547 100644
--- a/routing/integrated_routing_test.go
+++ b/routing/integrated_routing_test.go
@@ -85,7 +85,7 @@ type mppSendTestCase struct {
 
 	graph           func(g *mockGraph)
 	expectedFailure bool
-	maxShards       uint32
+	maxHtlcs        uint32
 }
 
 const (
@@ -150,7 +150,7 @@ var mppTestCases = []mppSendTestCase{
 				chans: []uint64{chanSourceIm2, chanIm2Target},
 			},
 		},
-		maxShards: 1000,
+		maxHtlcs: 1000,
 	},
 
 	// Test that a cap on the max htlcs makes it impossible to pay.
@@ -161,7 +161,7 @@ var mppTestCases = []mppSendTestCase{
 		expectedAttempts:  2,
 		expectedSuccesses: []expectedHtlcSuccess{},
 		expectedFailure:   true,
-		maxShards:         1,
+		maxHtlcs:          1,
 	},
 
 	// Test that an attempt is made to split the payment in multiple parts
@@ -186,7 +186,7 @@ var mppTestCases = []mppSendTestCase{
 			},
 		},
 		expectedFailure: true,
-		maxShards:       1000,
+		maxHtlcs:        1000,
 	},
 }
 
@@ -209,7 +209,7 @@ func testMppSend(t *testing.T, testCase *mppSendTestCase) {
 
 	ctx.amt = lnwire.NewMSatFromSatoshis(testCase.amt)
 
-	attempts, err := ctx.testPayment(testCase.maxShards)
+	attempts, err := ctx.testPayment(testCase.maxHtlcs)
 	switch {
 	case err == nil && testCase.expectedFailure:
 		t.Fatal("expected payment to fail")