-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(rln-relay): removed rln from experimental π (#2001)
* feat(rln-relay): removed rln from experimental π * fix(waku_node): if rln-relay is nil, return true * chore(tests): mark rest health as skipped
- Loading branch information
Showing
24 changed files
with
212 additions
and
456 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,19 +110,10 @@ clean: | clean-libbacktrace | |
|
||
|
||
################## | ||
## Experimental ## | ||
## RLN ## | ||
################## | ||
.PHONY: librln | ||
|
||
EXPERIMENTAL ?= false | ||
EXPERIMENTAL_PARAMS ?= $(EMPTY) | ||
|
||
ifeq ($(EXPERIMENTAL), true) | ||
RLN := true | ||
endif | ||
|
||
### RLN | ||
|
||
LIBRLN_BUILDDIR := $(CURDIR)/vendor/zerokit | ||
|
||
ifeq ($(OS),Windows_NT) | ||
|
@@ -135,14 +126,9 @@ $(LIBRLN_FILE): | |
echo -e $(BUILD_MSG) "$@" && \ | ||
./scripts/build_rln.sh $(LIBRLN_BUILDDIR) | ||
|
||
librln-experimental: | $(LIBRLN_FILE) | ||
$(eval EXPERIMENTAL_PARAMS += -d:rln --passL:$(LIBRLN_FILE) --passL:-lm) | ||
|
||
ifneq ($(RLN), true) | ||
librln: ; # noop | ||
else | ||
librln: | librln-experimental | ||
endif | ||
librln: | $(LIBRLN_FILE) | ||
$(eval NIM_PARAMS += --passL:$(LIBRLN_FILE) --passL:-lm) | ||
|
||
clean-librln: | ||
cargo clean --manifest-path vendor/zerokit/rln/Cargo.toml | ||
|
@@ -169,33 +155,33 @@ testcommon: | build deps | |
|
||
testwaku: | build deps librln | ||
echo -e $(BUILD_MSG) "build/$@" && \ | ||
$(ENV_SCRIPT) nim test -d:os=$(shell uname) $(NIM_PARAMS) $(EXPERIMENTAL_PARAMS) waku.nims | ||
$(ENV_SCRIPT) nim test -d:os=$(shell uname) $(NIM_PARAMS) waku.nims | ||
|
||
wakunode2: | build deps librln | ||
echo -e $(BUILD_MSG) "build/$@" && \ | ||
$(ENV_SCRIPT) nim wakunode2 $(NIM_PARAMS) $(EXPERIMENTAL_PARAMS) waku.nims | ||
$(ENV_SCRIPT) nim wakunode2 $(NIM_PARAMS) waku.nims | ||
|
||
testwakunode2: | build deps librln | ||
echo -e $(BUILD_MSG) "build/$@" && \ | ||
$(ENV_SCRIPT) nim testwakunode2 $(NIM_PARAMS) $(EXPERIMENTAL_PARAMS) waku.nims | ||
$(ENV_SCRIPT) nim testwakunode2 $(NIM_PARAMS) waku.nims | ||
|
||
example2: | build deps | ||
example2: | build deps librln | ||
echo -e $(BUILD_MSG) "build/$@" && \ | ||
$(ENV_SCRIPT) nim example2 $(NIM_PARAMS) waku.nims | ||
|
||
chat2: | build deps librln | ||
echo -e $(BUILD_MSG) "build/$@" && \ | ||
$(ENV_SCRIPT) nim chat2 $(NIM_PARAMS) $(EXPERIMENTAL_PARAMS) waku.nims | ||
$(ENV_SCRIPT) nim chat2 $(NIM_PARAMS) waku.nims | ||
|
||
rln-keystore-generator: | build deps librln-experimental | ||
rln-keystore-generator: | build deps librln | ||
echo -e $(BUILD_MSG) "build/$@" && \ | ||
$(ENV_SCRIPT) nim rln_keystore_generator $(NIM_PARAMS) $(EXPERIMENTAL_PARAMS) waku.nims | ||
$(ENV_SCRIPT) nim rln_keystore_generator $(NIM_PARAMS) waku.nims | ||
|
||
rln-db-inspector: | build deps librln-experimental | ||
rln-db-inspector: | build deps librln | ||
echo -e $(BUILD_MSG) "build/$@" && \ | ||
$(ENV_SCRIPT) nim rln_db_inspector $(NIM_PARAMS) $(EXPERIMENTAL_PARAMS) waku.nims | ||
$(ENV_SCRIPT) nim rln_db_inspector $(NIM_PARAMS) waku.nims | ||
|
||
chat2bridge: | build deps | ||
chat2bridge: | build deps librln | ||
echo -e $(BUILD_MSG) "build/$@" && \ | ||
$(ENV_SCRIPT) nim chat2bridge $(NIM_PARAMS) waku.nims | ||
|
||
|
@@ -207,11 +193,11 @@ chat2bridge: | build deps | |
|
||
tools: networkmonitor wakucanary | ||
|
||
wakucanary: | build deps | ||
wakucanary: | build deps librln | ||
echo -e $(BUILD_MSG) "build/$@" && \ | ||
$(ENV_SCRIPT) nim wakucanary $(NIM_PARAMS) waku.nims | ||
|
||
networkmonitor: | build deps | ||
networkmonitor: | build deps librln | ||
echo -e $(BUILD_MSG) "build/$@" && \ | ||
$(ENV_SCRIPT) nim networkmonitor $(NIM_PARAMS) waku.nims | ||
|
||
|
@@ -243,7 +229,6 @@ docker-image: | |
docker build \ | ||
--build-arg="MAKE_TARGET=$(MAKE_TARGET)" \ | ||
--build-arg="NIMFLAGS=$(DOCKER_IMAGE_NIMFLAGS)" \ | ||
--build-arg="EXPERIMENTAL=$(EXPERIMENTAL)" \ | ||
--build-arg="NIM_COMMIT=$(DOCKER_NIM_COMMIT)" \ | ||
--build-arg="LOG_LEVEL=$(LOG_LEVEL)" \ | ||
--label="commit=$(GIT_VERSION)" \ | ||
|
@@ -265,10 +250,10 @@ libwaku: | build deps | |
rm -f build/libwaku* | ||
ifeq ($(STATIC), true) | ||
echo -e $(BUILD_MSG) "build/[email protected]" && \ | ||
$(ENV_SCRIPT) nim libwakuStatic $(NIM_PARAMS) $(EXPERIMENTAL_PARAMS) waku.nims | ||
$(ENV_SCRIPT) nim libwakuStatic $(NIM_PARAMS) waku.nims | ||
else | ||
echo -e $(BUILD_MSG) "build/[email protected]" && \ | ||
$(ENV_SCRIPT) nim libwakuDynamic $(NIM_PARAMS) $(EXPERIMENTAL_PARAMS) waku.nims | ||
$(ENV_SCRIPT) nim libwakuDynamic $(NIM_PARAMS) waku.nims | ||
endif | ||
|
||
cwaku_example: | build libwaku | ||
|
Oops, something went wrong.