Skip to content

Commit

Permalink
Enabled support for ledger and hardware wallets (zeta-chain#550)
Browse files Browse the repository at this point in the history
* Enabled support for ledger and hardware wallets
  • Loading branch information
CharlieMc0 authored May 5, 2023
1 parent 402a5d9 commit ff34e9c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ENV GOPATH /go
ENV GOOS=linux
ENV CGO_ENABLED=1

RUN apk --no-cache add git make build-base jq openssh
RUN apk --no-cache add git make build-base jq openssh libusb-dev linux-headers
RUN ssh-keygen -b 2048 -t rsa -f /root/.ssh/localtest.pem -q -N ""

WORKDIR /go/delivery/zeta-node
Expand All @@ -21,7 +21,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build \

FROM golang:1.19-alpine

RUN apk --no-cache add openssh jq tmux vim curl bash
RUN apk --no-cache add openssh jq tmux vim curl bash
RUN ssh-keygen -A

COPY --from=builder /root/.ssh/localtest.pem.pub /root/.ssh/authorized_keys
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=zetacore \
-X github.com/zeta-chain/zetacore/common.BuildTime=$(BUILDTIME) \
-X github.com/cosmos/cosmos-sdk/types.DBBackend=pebbledb

BUILD_FLAGS := -ldflags '$(ldflags)' -tags PRIVNET,pebbledb
TESTNET_BUILD_FLAGS := -ldflags '$(ldflags)' -tags TESTNET,pebbledb
BUILD_FLAGS := -ldflags '$(ldflags)' -tags PRIVNET,pebbledb,ledger
TESTNET_BUILD_FLAGS := -ldflags '$(ldflags)' -tags TESTNET,pebbledb,ledger

TEST_DIR?="./..."
TEST_BUILD_FLAGS := -tags TESTNET,pebbledb
PRIV_BUILD_FLAGS := -tags PRIVNET,pebbledb
TEST_BUILD_FLAGS := -tags TESTNET,pebbledb,ledger
PRIV_BUILD_FLAGS := -tags PRIVNET,pebbledb,ledger

clean: clean-binaries clean-dir

Expand Down

0 comments on commit ff34e9c

Please sign in to comment.