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

op-node: Support multiple beacon archiver/fallbacks #10655

Merged
merged 3 commits into from
May 30, 2024

Conversation

sebastianst
Copy link
Member

@sebastianst sebastianst commented May 27, 2024

Description

Add support for specifying multiple beacon fallbacks/archivers via op-node's cmdline flags. The underlying support in the L1 Beacon client was already there, this just adds support for parsing multiple comma-separated endpoint addresses from the l1.beacon-archiver flag.

The flag is also renamed to l1.beacon-fallbacks, but the old name is preserved as an alias for backwards compatibility.

Tests

Added test that the string parsing works as expected and creates multiple L1 beacon http clients. The underlying fallback logic is already tested in its own tests.

Additional context

With this addition, the l1.beacon-archiver flag can be used to provide a list of fallback beacon l1 clients, instead of just falling back between the main l1.beacon endpoint and the one endpoint specified in l1.beacon-archiver.

@sebastianst sebastianst requested a review from a team as a code owner May 27, 2024 14:14
@sebastianst sebastianst requested a review from refcell May 27, 2024 14:14
@sebastianst sebastianst requested review from axelKingsley and trianglesphere and removed request for refcell May 27, 2024 15:18
@sebastianst sebastianst requested a review from ajsutton May 29, 2024 17:25
Copy link
Contributor

@ajsutton ajsutton left a comment

Choose a reason for hiding this comment

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

LGTM.

@sebastianst sebastianst enabled auto-merge May 30, 2024 08:15
@sebastianst sebastianst force-pushed the seb/beacon-multi-fallback branch from c97fd8d to 0917e57 Compare May 30, 2024 08:51
@sebastianst sebastianst added this pull request to the merge queue May 30, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 30, 2024
@sebastianst sebastianst added this pull request to the merge queue May 30, 2024
Merged via the queue into develop with commit b40933e May 30, 2024
65 checks passed
@sebastianst sebastianst deleted the seb/beacon-multi-fallback branch May 30, 2024 12:58
rdovgan pushed a commit to rdovgan/optimism that referenced this pull request Jun 24, 2024
…m#10655)

* op-node: Support multiple beacon archiver/fallbacks

* op-node: rename flag to l1.beacon-fallbacks

- retain old flag name and env var
- fix some tests

* Update op-node/node/client_test.go

Co-authored-by: Adrian Sutton <[email protected]>

---------

Co-authored-by: Adrian Sutton <[email protected]>
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.

4 participants