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

[TASK] Rework the DKG submission delay #41

Closed
Tracked by #92
drewstone opened this issue Dec 22, 2021 · 2 comments
Closed
Tracked by #92

[TASK] Rework the DKG submission delay #41

drewstone opened this issue Dec 22, 2021 · 2 comments
Assignees

Comments

@drewstone
Copy link
Contributor

The offchain submission delay is defined to be:

let delay = (block_number + 1u32.into()) + (max_delay % party_inx.into());

Problem with this delay:

  • At high block numbers this just continues to increase
  • Party index of 1 gets larger delay than party index > 1 with increasing difference.

What we should expect from the delay:

  • What values do we want the delay to take?
  • What is reasonable for offchain submission?
@drewstone
Copy link
Contributor Author

I propose the delay be bounded within the range [0 - 3 block intervals] and chosen uniformly at random.

@drewstone
Copy link
Contributor Author

The delay is hardcoded to 0 now, pending updates to doing a random sampling from the interval [0, max_delay].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

No branches or pull requests

3 participants