Skip to content

Conversation

Wollac
Copy link
Contributor

@Wollac Wollac commented Sep 22, 2025

Adds the 'rps' argument to the CLI, limiting the number of requests sent to RPC providers per second. The default is 25, which matches the Alchemy free tier.

@github-actions github-actions bot changed the title Add RPS limit to powv cli BM-1627: Add RPS limit to powv cli Sep 22, 2025
pub rpc_url: Option<Url>,

/// Limit the requests per second to the RPC endpoint
#[clap(long, env = "RPS", global = true, default_value_t = 25)]
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure defaulting the value to 25 is a good idea. I'd say that the majority of provers are not using a free RPC endpoint, so they would be affected.

Also for backwards compatibility, set the default to unlimited (current behaviour), but allow one configure to a different value

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.

3 participants