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

Slows down block maintenance iteration #543

Merged
merged 2 commits into from
Sep 4, 2023

Conversation

benbierens
Copy link
Contributor

This combined with #536 have greatly improved node stability and network stability in the continuous testing environment.

@@ -78,6 +78,7 @@ proc runBlockCheck(self: BlockMaintainer): Future[void] {.async.} =
if be =? await maybeBeFuture:
inc numberReceived
await self.processBlockExpiration(be)
await sleepAsync(50.millis)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can do it as a configuration param?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or something we can remove once we get non-blocking IO in. It looks like this might just give time for the network async items to catch up? But yah, it'd be nice to have something a bit more concrete long term.

@benbierens benbierens merged commit 545e0d4 into master Sep 4, 2023
8 checks passed
@benbierens benbierens deleted the slow-down-block-maintenance branch September 4, 2023 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants