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

feat: random delay before opening a challenge #355

Merged
merged 2 commits into from
Jul 7, 2023

Conversation

terencechain
Copy link
Collaborator

If every validator were to challenge an invalid assertion simultaneously, there would undoubtedly be races, many failed txs, and wasted gas. This PR implements a random delay that could be configured by the caller when initializing the challenge manager service. The random delay will be upper bounded by the parameter maxDelaySeconds

@terencechain terencechain force-pushed the random-delay-before-challenge branch from 4c0e448 to 25e5607 Compare July 6, 2023 14:08
@rauljordan rauljordan merged commit 1562440 into main Jul 7, 2023
6 checks passed
terencechain added a commit that referenced this pull request Jul 7, 2023
@terencechain terencechain deleted the random-delay-before-challenge branch August 4, 2023 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants