Skip to content

Conversation

yiweichi
Copy link
Member

@yiweichi yiweichi commented Sep 8, 2025

This PR enable RN to set multiple blob providers, and round robin provides. This will increase stability.

There is a priority order:

  1. beacon node by default (if configurated)
  2. if beacon node fails, we round robin other providers

Corresponding issue: #262

@yiweichi yiweichi requested a review from georgehao September 10, 2025 08:08
Copy link
Collaborator

@frisitano frisitano left a comment

Choose a reason for hiding this comment

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

Thanks, looks good! Left some minor nits inline.

@yiweichi yiweichi requested a review from jonastheis September 15, 2025 16:45
}
Err(err) => {
debug!(target: "scroll::providers", ?hash, ?block_timestamp, ?provider_index, ?err, provider_type, "provider failed to fetch blob");
counter.store(provider_index + 1, Ordering::Relaxed);
Copy link
Contributor

Choose a reason for hiding this comment

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

now this means we will always just use the same provider until it fails. why not just always rotate independently whether it succeeds/fails. then we do truly round robin

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