Skip to content
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

Eth2-to-NEAR-relay: non-blocking interaction with DAO #784

Open
sept-en opened this issue Aug 9, 2022 · 0 comments
Open

Eth2-to-NEAR-relay: non-blocking interaction with DAO #784

sept-en opened this issue Aug 9, 2022 · 0 comments

Comments

@sept-en
Copy link
Contributor

sept-en commented Aug 9, 2022

In PR #779 the support for interaction with the SputnikDAO was added. However, the current implementation supposes that after LightClientUpdate is sent, the relayer waits (in a blocking way) for the status change of Proposal (to something that is not InProgress status). This prevents the relay from doing anything else, e.g. submitting execution hash blocks.

To mitigate this, the possible ways would be:

  • When the proposal is submitted, the relayer resets some timer for light client updates sending and returns back to its normal operation. When the timer is up, the relayer tries to submit a new proposal once again (if needed).
  • The relayer fetches and tracks the proposals from the SputnikDAO account and verifies, whether it's required to submit some blocks again. So after submitting an update, the relayer continues its normal operation and occasionally checks the status of his proposal and whether there are any other proposals so it doesn't need to send an update.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants