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

Add configurable throttle to autostake #608

Merged
merged 4 commits into from
Sep 26, 2022
Merged

Conversation

tombeynon
Copy link
Contributor

Adds a configurable throttle to autostake which pauses the script after each page/batch of queries completes to reduce the pressure on the node slightly. Defaults to 100ms, and doesn't impact the get rewards/send in batches flow as this would increase the delay between calculating rewards and the TX being sent, leaving the user with increasing dust.

This PR also forces a higher throttle and smaller batch/page sizes when using the default public nodes for autostake. This shouldn't impact small validators much, but larger validators or those that run very often might have some issues and should run their own nodes to remove these limitations.

Tidies up the autostake configuration implementation and makes the config more visible.

Resolves #364

@tombeynon tombeynon merged commit 8fb79af into master Sep 26, 2022
@tombeynon tombeynon deleted the add-autostake-throttle branch September 26, 2022 11: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.

Add configurable throttle to autostake
1 participant