diff --git a/Dockerfile b/Dockerfile index 3faaad5ca..8a7bf3683 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,7 +25,7 @@ COPY test_data test_data COPY main.go . # build backend -RUN GOOS=linux go build -mod=mod -a -installsuffix cgo -o bin/core main.go +RUN CGO_CFLAGS="-std=gnu11" GOOS=linux go build -mod=mod -a -installsuffix cgo -o bin/core main.go # create tiny image FROM alpine:latest diff --git a/lib/constants.go b/lib/constants.go index 2d8828eeb..cd1a3793b 100644 --- a/lib/constants.go +++ b/lib/constants.go @@ -1925,7 +1925,7 @@ const ( // DefaultMaxNonceExpirationBlockHeightOffset - default value to which the MaxNonceExpirationBlockHeightOffset // is set to before specified by ParamUpdater. - DefaultMaxNonceExpirationBlockHeightOffset = 288 + DefaultMaxNonceExpirationBlockHeightOffset = 86400 // 1 day // TODO: Are these fields needed? // Access group enumeration max recursion depth. diff --git a/test.Dockerfile b/test.Dockerfile index e72d707c6..7dfe24163 100644 --- a/test.Dockerfile +++ b/test.Dockerfile @@ -6,6 +6,7 @@ RUN apk add --update bash cmake g++ gcc git make vips vips-dev COPY --from=golang:1.24-alpine /usr/local/go/ /usr/local/go/ ENV PATH="/usr/local/go/bin:${PATH}" +ENV CGO_CFLAGS="-std=gnu11" WORKDIR /deso/src/core