Skip to content

Commit

Permalink
cmd/lnwallet: add new wallet utility
Browse files Browse the repository at this point in the history
  • Loading branch information
guggero committed Sep 30, 2019
1 parent 7fcac54 commit 2854786
Show file tree
Hide file tree
Showing 5 changed files with 486 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ _testmain.go
/lnd-debug
/lncli
/lncli-debug
/lnwallet-debug
/lnd-itest
/lncli-itest
/lnwallet-itest

# Integration test log files
lntest/itest/output*.log
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ RUN apk --no-cache add \
# Copy the binaries from the builder image.
COPY --from=builder /go/bin/lncli /bin/
COPY --from=builder /go/bin/lnd /bin/
COPY --from=builder /go/bin/lnwallet /bin/

# Expose lnd ports (p2p, rpc).
EXPOSE 9735 10009
Expand Down
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,19 +88,22 @@ btcd:
# ============

build:
@$(call print, "Building debug lnd and lncli.")
@$(call print, "Building debug lnd/lncli and lnwallet.")
$(GOBUILD) -tags="$(DEV_TAGS)" -o lnd-debug $(LDFLAGS) $(PKG)/cmd/lnd
$(GOBUILD) -tags="$(DEV_TAGS)" -o lncli-debug $(LDFLAGS) $(PKG)/cmd/lncli
$(GOBUILD) -tags="$(DEV_TAGS)" -o lnwallet-debug $(LDFLAGS) $(PKG)/cmd/lnwallet

build-itest:
@$(call print, "Building itest lnd and lncli.")
$(GOBUILD) -tags="$(ITEST_TAGS)" -o lnd-itest $(LDFLAGS) $(PKG)/cmd/lnd
$(GOBUILD) -tags="$(ITEST_TAGS)" -o lncli-itest $(LDFLAGS) $(PKG)/cmd/lncli
$(GOBUILD) -tags="$(ITEST_TAGS)" -o lnwallet-itest $(LDFLAGS) $(PKG)/cmd/lnwallet

install:
@$(call print, "Installing lnd and lncli.")
@$(call print, "Installing lnd/lncli and lnwallet.")
$(GOINSTALL) -tags="${tags}" $(LDFLAGS) $(PKG)/cmd/lnd
$(GOINSTALL) -tags="${tags}" $(LDFLAGS) $(PKG)/cmd/lncli
$(GOINSTALL) -tags="${tags}" $(LDFLAGS) $(PKG)/cmd/lnwallet

scratch: build

Expand Down Expand Up @@ -198,8 +201,8 @@ mobile: ios android

clean:
@$(call print, "Cleaning source.$(NC)")
$(RM) ./lnd-debug ./lncli-debug
$(RM) ./lnd-itest ./lncli-itest
$(RM) ./lnd-debug ./lncli-debug ./lnwallet-debug
$(RM) ./lnd-itest ./lncli-itest ./lnwallet-itest
$(RM) -r ./vendor .vendor-new


Expand Down
Loading

0 comments on commit 2854786

Please # to comment.