-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(Makefile): error out if rln-keystore-generator not compiled with rln flag #1960
Conversation
Makefile
Outdated
ifeq ($(RLN),true) | ||
echo -e $(BUILD_MSG) "build/$@" && \ | ||
$(ENV_SCRIPT) nim rln_keystore_generator $(NIM_PARAMS) $(EXPERIMENTAL_PARAMS) waku.nims | ||
else | ||
$(error RLN is not true. To build rln-keystore-generator, set RLN=true.) | ||
endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure if there's a better way to make RLN default to true while building this target - thoughts @vpavlin?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @rymnc !
Maybe we could do sth like the next:
https://gist.github.com/Ivansete-status/fbd0c075658f942b2f9a5c111ae4ef1b#file-makefile-L138
https://gist.github.com/Ivansete-status/fbd0c075658f942b2f9a5c111ae4ef1b#file-makefile-L145
https://gist.github.com/Ivansete-status/fbd0c075658f942b2f9a5c111ae4ef1b#file-makefile-L190
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh! good idea, i'll add that
thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed in 3a7ebc4
You can find the image built from this PR at
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of erroring out, cant we just set RLN=true if "make rln-keystore-generator"?
yeah, not sure how to |
seems that by default its compiled with TRACE, so perhaps we should add this to the instructions.
|
Yeah im working on the readme for it |
btw, it works fine but I see |
because when the tree has just been created, the metadata does not exist when we try to fetch it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks!
Description
This pr is associated to #1956 (comment)
We need to ensure that RLN is set to true when compiling the
rln-keystore-generator
targetChanges