-
Notifications
You must be signed in to change notification settings - Fork 51
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(rln-relay): sync from a recent block number, not 0 #1859
Conversation
This PR is no longer required since it was fixed with the decay introduction in #1858 |
can see its closed but out of curiosity. which block is it used to sync the registration events? from 0? |
Yes, as of now, its 0 - but when |
@rymnc Leaving the idea in case you find it useful. afaik in solidity you can access the block So then we can just Is that what you had in mind by "we will fetch from the block number in which the contract was deployed" ? |
Sure, we can add block.number in the constructor, it's unnecessary storage though. (open to this solution) |
shouldn't be expensive, just one variable? isnt it neglectable?
but how will people access it? manually? or how can this be automated? |
agree, it can be neglected - I'll make the changes upstream for this
since it is a submodule in nwaku, it will be automated - check #1884, where its automatically fetched |
ah i see. but then if someone deploys its own rln contract, this wont work, and we would need a flag to specify it and override the default? |
Correct - I will use your approach moving forward, but there still may be some merit in using waku-rln-contract as a submodule, wdyt? |
having the ABI is needed i guess? so that would be a merit. is it hardcoded now? |
|
!WIP!
Description
Changes