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

Rate limiting for the Ethereum event oracle #464

Closed
james-chf opened this issue Sep 9, 2022 · 0 comments
Closed

Rate limiting for the Ethereum event oracle #464

james-chf opened this issue Sep 9, 2022 · 0 comments

Comments

@james-chf
Copy link
Contributor

james-chf commented Sep 9, 2022

async fn run_oracle_aux(oracle: Oracle) {
// Initialize our local state. This includes
// the latest block height seen and a queue of events
// awaiting a certain number of confirmations
let mut latest_block;
let mut pending: Vec<PendingEvent> = Vec::new();
loop {

Currently, the Ethereum event oracle checks for new blocks/events as soon as it has finished the previous check. We should back off inbetween checks (e.g. sleep 1 second), so that we don't spam the Ethereum JSON-RPC endpoint we are using, or spam logs.

Extra context - #253 (comment)

@james-chf james-chf moved this to Todo in Namada-Old Sep 9, 2022
@james-chf james-chf moved this from Todo to WIP in Namada-Old Sep 9, 2022
@james-chf james-chf moved this from WIP to Todo in Namada-Old Sep 9, 2022
Repository owner moved this from Todo to Tested in Devnet in Namada-Old Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Tested in Devnet
Development

No branches or pull requests

1 participant