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

Low nonce consumption #229

Merged
merged 5 commits into from
Dec 1, 2023
Merged

Low nonce consumption #229

merged 5 commits into from
Dec 1, 2023

Conversation

agouin
Copy link
Member

@agouin agouin commented Dec 1, 2023

Fine tune when nonces are being consumed at a delay greater than the getNoncesInterval

When nonces are being consumed at a rate less than the getNoncesInterval, the resulting signal makes it difficult to estimate the correct target that will prevent expiring nonces and also prevent cached nonces dropping to zero.

This introduces a better moving average mechanism to more accurately determine the rate of nonce consumption, and enables reconciling to get more nonces as soon as the cache is empty.

Resolves #228

@agouin agouin requested a review from misko9 December 1, 2023 18:55
@agouin agouin merged commit 4fe383e into main Dec 1, 2023
13 checks passed
@agouin agouin deleted the andrew/low_nonce_consumption branch December 1, 2023 21:51
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.

Wrong "state" migrating from 3.1.0 to 3.2.0
2 participants