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 dev node RPC ports to local node instructions #982

Merged
merged 3 commits into from
Oct 12, 2024

Conversation

WillPapper
Copy link
Contributor

Description

The local node documentation does not list the RPC ports needed to access a local node. They are included in the CLI output but not the docs, so this PR adds them to the docs.

Tests

This can be verified after running make devnet-up via the CLI output (included in a commit below) and:

cast chain-id --rpc-url http://127.0.0.1:8545
900
cast chain-id --rpc-url http://127.0.0.1:9545
901

Here is the command output of `make devnet-up` for reference:
```
[+] Running 3/3
 ✔ Container ops-bedrock-l1-1     Started                                                                                                                                                                                                                                0.1s 
 ✔ Container ops-bedrock-l1-bn-1  Started                                                                                                                                                                                                                                0.2s 
 ✔ Container ops-bedrock-l1-vc-1  Started                                                                                                                                                                                                                                0.4s 
[INFO|10-12-2024 08:43:12] Trying 127.0.0.1:8545
[INFO|10-12-2024 08:43:12] Connected 127.0.0.1:8545
[INFO|10-12-2024 08:43:12] Waiting for RPC server at 127.0.0.1:8545
[INFO|10-12-2024 08:43:12] RPC server at 127.0.0.1:8545 ready
[INFO|10-12-2024 08:43:12] L2 genesis and rollup configs already generated.
[INFO|10-12-2024 08:43:12] Bringing up L2.
WARN[0000] The "DG_TYPE" variable is not set. Defaulting to a blank string. 
WARN[0000] The "L2OO_ADDRESS" variable is not set. Defaulting to a blank string. 
WARN[0000] The "DGF_ADDRESS" variable is not set. Defaulting to a blank string. 
WARN[0000] The "PROPOSAL_INTERVAL" variable is not set. Defaulting to a blank string. 
WARN[0000] The "ALTDA_ENABLED" variable is not set. Defaulting to a blank string. 
WARN[0000] The "ALTDA_SERVICE" variable is not set. Defaulting to a blank string. 
WARN[0000] The "DA_TYPE" variable is not set. Defaulting to a blank string. 
WARN[0000] The "DGF_ADDRESS" variable is not set. Defaulting to a blank string. 
WARN[0000] The "ALTDA_GENERIC_DA" variable is not set. Defaulting to a blank string. 
WARN[0000] The "ALTDA_ENABLED" variable is not set. Defaulting to a blank string. 
WARN[0000] The "ALTDA_SERVICE" variable is not set. Defaulting to a blank string. 
[+] Running 1/1
 ✔ Container ops-bedrock-l2-1  Started                                                                                                                                                                                                                                   0.1s 
[INFO|10-12-2024 08:43:12] Trying 127.0.0.1:9545
[INFO|10-12-2024 08:43:12] Connected 127.0.0.1:9545
[INFO|10-12-2024 08:43:12] Waiting for RPC server at 127.0.0.1:9545
[INFO|10-12-2024 08:43:12] Waiting for RPC server at 127.0.0.1:9545
[INFO|10-12-2024 08:43:13] RPC server at 127.0.0.1:9545 ready
[INFO|10-12-2024 08:43:13] Using batch inbox 0x00289c189bee4e70334629f04cd5ed602b6600eb
[INFO|10-12-2024 08:43:13] Using DisputeGameFactory 0xeCb92a686D1ab066fc4E559A305FEB75DD512377
[INFO|10-12-2024 08:43:13] Bringing up `op-node`, `op-proposer` and `op-batcher`.
WARN[0000] The "L2OO_ADDRESS" variable is not set. Defaulting to a blank string. 
```
This matches the CLI output
@WillPapper WillPapper requested a review from a team as a code owner October 12, 2024 08:58
Copy link

netlify bot commented Oct 12, 2024

Deploy Preview for docs-optimism ready!

Name Link
🔨 Latest commit 9ef8cae
🔍 Latest deploy log https://app.netlify.com/sites/docs-optimism/deploys/670a3bf8a5437b0008a03428
😎 Deploy Preview https://deploy-preview-982--docs-optimism.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

coderabbitai bot commented Oct 12, 2024

Walkthrough

The pull request updates the document titled "Running a Local Development Environment" by adding specific information about the availability of L1 and L2 RPC servers after starting the development node. It includes a new line in the "Operations" section, specifying that the L2 RPC server can be accessed at 127.0.0.1:9545 and the L1 RPC server at 127.0.0.1:8545. This addition clarifies the instructions for users regarding accessing the RPC servers in the local development environment.

Changes

File Change Summary
pages/chain/testing/dev-node.mdx Added details about L1 and L2 RPC server availability at specified addresses.

Possibly related PRs

  • docs: Update L1 and L2 URL examples for op-node setup #781: This PR updates L1 and L2 URL examples, which directly relates to the main PR's focus on providing specific addresses for L1 and L2 RPC servers.
  • update devnet #834: This PR modifies the same document (dev-node.mdx) as the main PR, enhancing the setup instructions, which may include relevant context for accessing the RPC servers mentioned in the main PR.

Suggested labels

documentation

Suggested reviewers

  • cpengilly
  • bradleycamacho

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Outside diff range and nitpick comments (1)
pages/chain/testing/dev-node.mdx (1)

112-113: Approved with a minor suggestion for clarity.

The added information about RPC server availability is valuable and well-placed within the "Operations" section. It provides clear instructions for users to access the L1 and L2 RPC servers after starting the devnet.

To enhance clarity, consider adding a brief explanation of what these RPC servers are used for. For example:

 After the devnet starts, the L2 RPC server will be available at `127.0.0.1:9545` and the L1 RPC server will be available at `127.0.0.1:8545`.
+These RPC servers allow you to interact with your local L1 and L2 nodes, send transactions, and query blockchain data.

This addition would provide context for users who might be less familiar with the purpose of RPC servers in blockchain development.

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between c2e5053 and d7c3c9e.

📒 Files selected for processing (1)
  • pages/chain/testing/dev-node.mdx (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
pages/chain/testing/dev-node.mdx (1)

Pattern **/*.mdx: "ALWAYS review Markdown content THOROUGHLY with the following criteria:

  • Use proper nouns in place of personal pronouns like 'We' and 'Our' to maintain consistency in communal documentation.
  • Avoid gender-specific language and use the imperative form.
  • Monitor capitalization for emphasis. Avoid using all caps, italics, or bold for emphasis.
  • Ensure proper nouns are capitalized in sentences.
  • Apply the Oxford comma.
  • Use proper title case for headers, buttons, tab names, page names, and links. Sentence case should be used for body content and short phrases, even in links.
  • Use correct spelling and grammar at all times (IMPORTANT).
  • Use sentence case for H1, H2, and H3 headers, capitalizing only the first word and any proper nouns.
  • For all headers (H1, H2, H3), do not change the capitalization of proper nouns; keep them as they are.
    "

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Outside diff range and nitpick comments (1)
pages/chain/testing/dev-node.mdx (1)

110-111: Improve grammar and use Oxford comma

The added information is valuable for users. However, there are two minor improvements we can make:

  1. Add a comma after "images" for better readability.
  2. Use the Oxford comma before "and" in the list of RPC servers.

Here's the suggested revision:

-    The first time it runs it will be relatively slow because it needs to download the images, after that it will be faster.\
-    After the devnet starts, the L2 RPC server will be available at `127.0.0.1:9545` and the L1 RPC server will be available at `127.0.0.1:8545`.
+    The first time it runs it will be relatively slow because it needs to download the images, after that it will be faster.\
+    After the devnet starts, the L2 RPC server will be available at `127.0.0.1:9545`, and the L1 RPC server will be available at `127.0.0.1:8545`.
🧰 Tools
🪛 LanguageTool

[typographical] ~110-~110: Consider adding a comma here.
Context: ...ecause it needs to download the images, after that it will be faster.\ After the devne...

(FOR_THAT_COMMA)

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between d7c3c9e and 9ef8cae.

📒 Files selected for processing (1)
  • pages/chain/testing/dev-node.mdx (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
pages/chain/testing/dev-node.mdx (1)

Pattern **/*.mdx: "ALWAYS review Markdown content THOROUGHLY with the following criteria:

  • Use proper nouns in place of personal pronouns like 'We' and 'Our' to maintain consistency in communal documentation.
  • Avoid gender-specific language and use the imperative form.
  • Monitor capitalization for emphasis. Avoid using all caps, italics, or bold for emphasis.
  • Ensure proper nouns are capitalized in sentences.
  • Apply the Oxford comma.
  • Use proper title case for headers, buttons, tab names, page names, and links. Sentence case should be used for body content and short phrases, even in links.
  • Use correct spelling and grammar at all times (IMPORTANT).
  • Use sentence case for H1, H2, and H3 headers, capitalizing only the first word and any proper nouns.
  • For all headers (H1, H2, H3), do not change the capitalization of proper nouns; keep them as they are.
    "
🪛 LanguageTool
pages/chain/testing/dev-node.mdx

[typographical] ~110-~110: Consider adding a comma here.
Context: ...ecause it needs to download the images, after that it will be faster.\ After the devne...

(FOR_THAT_COMMA)

@krofax krofax merged commit 6dcb56e into ethereum-optimism:main Oct 12, 2024
5 of 6 checks passed
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.

2 participants