Skip to content

docs: download-genesis command#1461

Merged
jcstein merged 1 commit intocelestiaorg:mainfrom
rootulp:rp/download-genesis
Mar 7, 2024
Merged

docs: download-genesis command#1461
jcstein merged 1 commit intocelestiaorg:mainfrom
rootulp:rp/download-genesis

Conversation

@rootulp
Copy link
Copy Markdown
Contributor

@rootulp rootulp commented Mar 7, 2024

celestia-appd has had a download-genesis command since 1.4.0 so I think it's safe to suggest doing that instead of manually curling the genesis file and copying it over.

Screenshot

Screenshot 2024-03-06 at 9 08 36 PM

and it works on my machine

$ celestia-appd download-genesis celestia
Downloading genesis file for celestia to /Users/rootulp/.celestia-app/config/genesis.json
Downloaded genesis file for celestia to /Users/rootulp/.celestia-app/config/genesis.json
SHA-256 hash verified for celestia

Summary by CodeRabbit

  • Refactor
    • Streamlined the process for downloading the genesis.json file for different chain IDs, enhancing clarity for users.

@rootulp rootulp requested a review from jcstein March 7, 2024 02:08
@rootulp rootulp self-assigned this Mar 7, 2024
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 7, 2024

Walkthrough

The recent update enhances user experience by streamlining the process of downloading the genesis.json file. Instead of using the traditional cp command, users will now utilize celestia-appd download-genesis tailored for different chain IDs. This change simplifies the procedure and improves clarity, making it easier for users to set up their environments.

Changes

Files Change Summary
nodes/consensus-node.md Replaced cp command with celestia-appd download-genesis for downloading genesis.json.

🐇✨
In the digital meadow, under the byte-sized sun,
A change was made, a new command begun.
"celestia-appd download-genesis", so sleek and so bright,
Making genesis fetch, a delightful sight.
No more cp, no more confusion,
Just clarity, simplicity, and a happy conclusion.
🌟🐰

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>.
    • Generate unit-tests 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 tests 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 generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit tests.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

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 as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json

CodeRabbit Discord Community

Join our Discord Community to get help, request features, and share feedback.

Copy link
Copy Markdown
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.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 1554acc and af6cdbc.
Files selected for processing (1)
  • nodes/consensus-node.md (1 hunks)
Additional comments: 1
nodes/consensus-node.md (1)
  • 83-96: The introduction of the celestia-appd download-genesis command for different chain IDs (Mainnet Beta, Mocha, Arabica) is a significant improvement in simplifying the setup process for Celestia nodes. This change automates the download and placement of the genesis.json file, which is crucial for node configuration. It's important to ensure that the command syntax and chain IDs provided are accurate and up-to-date with the latest celestia-appd version and network configurations. Additionally, consider adding a note or tip about verifying the download for extra security, such as checking the file's integrity or hash.

@jcstein
Copy link
Copy Markdown
Member

jcstein commented Mar 7, 2024

LGTM! thanks @rootulp

@jcstein jcstein merged commit b61686c into celestiaorg:main Mar 7, 2024
@rootulp rootulp deleted the rp/download-genesis branch March 7, 2024 16:46
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