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

cmd: make mempool OOM error handler more adaptive #174

Merged
merged 1 commit into from
May 16, 2024

Conversation

AnnaShaleva
Copy link
Member

Once mempool OOm error happens, worker should wait for a while until block processing finishes. Make this awaiting interval depend on MSPerBlock protocol setting so that it's possible to perform precise calculations for low MSPerBlock setting.

cmd/internal/worker.go Outdated Show resolved Hide resolved
cmd/internal/worker.go Outdated Show resolved Hide resolved
cmd/internal/worker.go Outdated Show resolved Hide resolved
cmd/bench/main.go Outdated Show resolved Hide resolved
Once mempool OOm error happens, worker should wait for a while until
block processing finishes. Make this awaiting interval depend on
MSPerBlock protocol setting so that it's possible to perform precise
calculations for low MSPerBlock setting.

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
@AnnaShaleva AnnaShaleva merged commit 1e13456 into master May 16, 2024
8 checks passed
@AnnaShaleva AnnaShaleva deleted the fix-mempool-oom-handling branch May 16, 2024 14:44
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

2 participants