mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-24 06:25:55 +00:00
Merge branch 'dev' into add-tx-index
This commit is contained in:
commit
de5f5518f5
@ -6,8 +6,6 @@ RUN mkdir -p /go/src/github.com/kaspanet/kaspad
|
|||||||
WORKDIR /go/src/github.com/kaspanet/kaspad
|
WORKDIR /go/src/github.com/kaspanet/kaspad
|
||||||
|
|
||||||
RUN apk add --no-cache curl git openssh binutils gcc musl-dev
|
RUN apk add --no-cache curl git openssh binutils gcc musl-dev
|
||||||
RUN go get -u golang.org/x/lint/golint \
|
|
||||||
honnef.co/go/tools/cmd/staticcheck
|
|
||||||
|
|
||||||
COPY go.mod .
|
COPY go.mod .
|
||||||
COPY go.sum .
|
COPY go.sum .
|
||||||
@ -18,10 +16,6 @@ COPY . .
|
|||||||
|
|
||||||
WORKDIR /go/src/github.com/kaspanet/kaspad/cmd/kaspactl
|
WORKDIR /go/src/github.com/kaspanet/kaspad/cmd/kaspactl
|
||||||
|
|
||||||
RUN GOFMT_RESULT=`go fmt ./...`; echo $GOFMT_RESULT; test -z "$GOFMT_RESULT"
|
|
||||||
RUN go vet ./...
|
|
||||||
RUN golint -set_exit_status ./...
|
|
||||||
RUN staticcheck -checks SA4006 ./...
|
|
||||||
RUN GOOS=linux go build -a -installsuffix cgo -o kaspactl .
|
RUN GOOS=linux go build -a -installsuffix cgo -o kaspactl .
|
||||||
|
|
||||||
# --- multistage docker build: stage #2: runtime image
|
# --- multistage docker build: stage #2: runtime image
|
||||||
|
|||||||
@ -6,8 +6,6 @@ RUN mkdir -p /go/src/github.com/kaspanet/kaspad
|
|||||||
WORKDIR /go/src/github.com/kaspanet/kaspad
|
WORKDIR /go/src/github.com/kaspanet/kaspad
|
||||||
|
|
||||||
RUN apk add --no-cache curl git openssh binutils gcc musl-dev
|
RUN apk add --no-cache curl git openssh binutils gcc musl-dev
|
||||||
RUN go get -u golang.org/x/lint/golint \
|
|
||||||
honnef.co/go/tools/cmd/staticcheck
|
|
||||||
|
|
||||||
COPY go.mod .
|
COPY go.mod .
|
||||||
COPY go.sum .
|
COPY go.sum .
|
||||||
@ -17,11 +15,6 @@ RUN go mod download
|
|||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
WORKDIR /go/src/github.com/kaspanet/kaspad/cmd/kaspaminer
|
WORKDIR /go/src/github.com/kaspanet/kaspad/cmd/kaspaminer
|
||||||
|
|
||||||
RUN GOFMT_RESULT=`go fmt ./...`; echo $GOFMT_RESULT; test -z "$GOFMT_RESULT"
|
|
||||||
RUN go vet ./...
|
|
||||||
RUN golint -set_exit_status ./...
|
|
||||||
RUN staticcheck -checks SA4006 ./...
|
|
||||||
RUN GOOS=linux go build -a -installsuffix cgo -o kaspaminer .
|
RUN GOOS=linux go build -a -installsuffix cgo -o kaspaminer .
|
||||||
|
|
||||||
# --- multistage docker build: stage #2: runtime image
|
# --- multistage docker build: stage #2: runtime image
|
||||||
|
|||||||
@ -10,19 +10,13 @@ RUN apk add --no-cache curl git openssh binutils gcc musl-dev
|
|||||||
COPY go.mod .
|
COPY go.mod .
|
||||||
COPY go.sum .
|
COPY go.sum .
|
||||||
|
|
||||||
RUN go get -u golang.org/x/lint/golint \
|
|
||||||
github.com/kisielk/errcheck \
|
|
||||||
github.com/opennota/check/cmd/aligncheck \
|
|
||||||
github.com/opennota/check/cmd/structcheck \
|
|
||||||
github.com/opennota/check/cmd/varcheck \
|
|
||||||
honnef.co/go/tools/cmd/staticcheck
|
|
||||||
|
|
||||||
# Cache kaspad dependencies
|
# Cache kaspad dependencies
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN ./build_and_test.sh
|
RUN go build $FLAGS -o kaspad .
|
||||||
|
|
||||||
# --- multistage docker build: stage #2: runtime image
|
# --- multistage docker build: stage #2: runtime image
|
||||||
FROM alpine
|
FROM alpine
|
||||||
|
|||||||
@ -7,5 +7,4 @@ type MergeDepthManager interface {
|
|||||||
CheckBoundedMergeDepth(stagingArea *StagingArea, blockHash *externalapi.DomainHash, isBlockWithTrustedData bool) error
|
CheckBoundedMergeDepth(stagingArea *StagingArea, blockHash *externalapi.DomainHash, isBlockWithTrustedData bool) error
|
||||||
NonBoundedMergeDepthViolatingBlues(stagingArea *StagingArea, blockHash, mergeDepthRoot *externalapi.DomainHash) ([]*externalapi.DomainHash, error)
|
NonBoundedMergeDepthViolatingBlues(stagingArea *StagingArea, blockHash, mergeDepthRoot *externalapi.DomainHash) ([]*externalapi.DomainHash, error)
|
||||||
VirtualMergeDepthRoot(stagingArea *StagingArea) (*externalapi.DomainHash, error)
|
VirtualMergeDepthRoot(stagingArea *StagingArea) (*externalapi.DomainHash, error)
|
||||||
MergeDepthRoot(stagingArea *StagingArea, blockHash *externalapi.DomainHash, isBlockWithTrustedData bool) (*externalapi.DomainHash, error)
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user