Skip to content

Commit

Permalink
bump post-rs to v0.7.11 (#6114)
Browse files Browse the repository at this point in the history
## Motivation

Update to the latest release. Node: updated the post-rs binary name to post-service.
  • Loading branch information
poszu committed Jul 12, 2024
1 parent f8f0ca3 commit 978d03c
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ FROM linux AS spacemesh

# Finally we copy the statically compiled Go binary.
COPY --from=builder /src/build/go-spacemesh /bin/
COPY --from=builder /src/build/service /bin/
COPY --from=builder /src/build/post-service /bin/
COPY --from=builder /src/build/libpost.so /bin/
COPY --from=builder /src/build/gen-p2p-identity /bin/
COPY --from=builder /src/build/merge-nodes /bin/
Expand Down
8 changes: 4 additions & 4 deletions Makefile-libs.Inc
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,21 @@ else
endif
endif

POSTRS_SETUP_REV = 0.7.8
POSTRS_SETUP_REV = 0.7.11
POSTRS_SETUP_ZIP = libpost-$(platform)-v$(POSTRS_SETUP_REV).zip
POSTRS_SETUP_URL_ZIP ?= https://github.com/spacemeshos/post-rs/releases/download/v$(POSTRS_SETUP_REV)/$(POSTRS_SETUP_ZIP)

POSTRS_PROFILER_ZIP = profiler-$(platform)-v$(POSTRS_SETUP_REV).zip
POSTRS_PROFILER_URL ?= https://github.com/spacemeshos/post-rs/releases/download/v$(POSTRS_SETUP_REV)/$(POSTRS_PROFILER_ZIP)

POSTRS_SERVICE_ZIP = service-$(platform)-v$(POSTRS_SETUP_REV).zip
POSTRS_SERVICE_ZIP = post-service-$(platform)-v$(POSTRS_SETUP_REV).zip
POSTRS_SERVICE_URL ?= https://github.com/spacemeshos/post-rs/releases/download/v$(POSTRS_SETUP_REV)/$(POSTRS_SERVICE_ZIP)

ifeq ($(platform), windows)
POSTRS_SETUP_LIBS = post.h post.dll

POSTRS_PROFILER_BIN = profiler.exe
POSTRS_SERVICE_BIN = service.exe
POSTRS_SERVICE_BIN = post-service.exe
else
ifeq ($(platform), $(filter $(platform), macos macos-m1))
POSTRS_SETUP_LIBS = post.h libpost.dylib
Expand All @@ -73,7 +73,7 @@ else
endif

POSTRS_PROFILER_BIN = profiler
POSTRS_SERVICE_BIN = service
POSTRS_SERVICE_BIN = post-service
endif

BINDIR_POSTRS_SETUP_LIBS = $(foreach X,$(POSTRS_SETUP_LIBS),$(BIN_DIR)$(X))
Expand Down
2 changes: 1 addition & 1 deletion activation/post_supervisor_nix.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

package activation

const DefaultPostServiceName = "service"
const DefaultPostServiceName = "post-service"
2 changes: 1 addition & 1 deletion activation/post_supervisor_win.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

package activation

const DefaultPostServiceName = "service.exe"
const DefaultPostServiceName = "post-service.exe"
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ require (
github.com/spacemeshos/go-scale v1.2.0
github.com/spacemeshos/merkle-tree v0.2.3
github.com/spacemeshos/poet v0.10.4
github.com/spacemeshos/post v0.12.7
github.com/spacemeshos/post v0.12.8
github.com/spf13/afero v1.11.0
github.com/spf13/cobra v1.8.1
github.com/spf13/pflag v1.0.5
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -616,8 +616,8 @@ github.com/spacemeshos/merkle-tree v0.2.3 h1:zGEgOR9nxAzJr0EWjD39QFngwFEOxfxMloE
github.com/spacemeshos/merkle-tree v0.2.3/go.mod h1:VomOcQ5pCBXz7goiWMP5hReyqOfDXGSKbrH2GB9Htww=
github.com/spacemeshos/poet v0.10.4 h1:MHGG1dhMVwy5DdlsmwdRLDQTTqlPA21lSQB2PVd8MSk=
github.com/spacemeshos/poet v0.10.4/go.mod h1:hz21GMyHb9h29CqNhVeKxCD5dxZdQK27nAqLpT46gjE=
github.com/spacemeshos/post v0.12.7 h1:0pLD19TWM6EktFhnd+7QW8ifvdVH952EKliGUN49gFk=
github.com/spacemeshos/post v0.12.7/go.mod h1:WzfVgaa1wxgrsytC4EVKkG8rwoUxjyoyQL0ZSxs56Y0=
github.com/spacemeshos/post v0.12.8 h1:xcxVPWTvt2zJYJUvdpmX7CwR1CQnMnmd4VndThGbSdY=
github.com/spacemeshos/post v0.12.8/go.mod h1:WzfVgaa1wxgrsytC4EVKkG8rwoUxjyoyQL0ZSxs56Y0=
github.com/spacemeshos/sha256-simd v0.1.0 h1:G7Mfu5RYdQiuE+wu4ZyJ7I0TI74uqLhFnKblEnSpjYI=
github.com/spacemeshos/sha256-simd v0.1.0/go.mod h1:O8CClVIilId7RtuCMV2+YzMj6qjVn75JsxOxaE8vcfM=
github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI=
Expand Down
4 changes: 2 additions & 2 deletions systest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ RUN set -ex \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
COPY --from=build /src/build/tests.test /bin/tests
COPY --from=build /src/build/libpost.so /bin/libpost.so
COPY --from=build /src/build/service /bin/service
COPY --from=build /src/build/libpost.so /bin/
COPY --from=build /src/build/post-service /bin/
ENV LD_LIBRARY_PATH="/bin/"
4 changes: 2 additions & 2 deletions systest/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ tmpfile := $(shell mktemp /tmp/systest-XXX)
test_name ?= TestSmeshing
org ?= spacemeshos
image_name ?= $(org)/systest:$(version_info)
certifier_image ?= spacemeshos/certifier-service:v0.7.8
certifier_image ?= spacemeshos/certifier-service:v0.7.11
poet_image ?= $(org)/poet:v0.10.3
post_service_image ?= $(org)/post-service:v0.7.8
post_service_image ?= $(org)/post-service:v0.7.11
post_init_image ?= $(org)/postcli:v0.12.5
smesher_image ?= $(org)/go-spacemesh-dev:$(version_info)
bs_image ?= $(org)/go-spacemesh-dev-bs:$(version_info)
Expand Down
4 changes: 4 additions & 0 deletions systest/parameters/bignet/certifier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ init_cfg:
n: 2
r: 1
p: 1
limits:
max_concurrent_requests: 2
max_pending_requests: 100
max_body_size: 4096
4 changes: 4 additions & 0 deletions systest/parameters/fastnet/certifier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ init_cfg:
n: 2
r: 1
p: 1
limits:
max_concurrent_requests: 2
max_pending_requests: 100
max_body_size: 4096
4 changes: 4 additions & 0 deletions systest/parameters/longfast/certifier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ init_cfg:
n: 2
r: 1
p: 1
limits:
max_concurrent_requests: 2
max_pending_requests: 100
max_body_size: 4096

0 comments on commit 978d03c

Please sign in to comment.