-
Notifications
You must be signed in to change notification settings - Fork 193
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
refactor(localnet): preserve local keyring on make localnet #1957
Conversation
Warning Rate limit exceeded@k-yang has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 12 minutes and 59 seconds before requesting another review. How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. WalkthroughThe script Changes
Poem
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? TipsChatThere are 3 ways to chat with CodeRabbit:
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)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this 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
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- contrib/scripts/localnet.sh (6 hunks)
Additional comments not posted (5)
contrib/scripts/localnet.sh (5)
57-59
: LGTM! The flag renaming improves clarity.The comment correctly describes the behavior of the
FLAG_SKIP_BUILD
flag.
84-84
: LGTM! The flag renaming ensures consistency.The
--no-build
flag has been renamed to--skip-build
to match the updated flag name.
99-100
: LGTM! The flag check is consistent with the renaming.The script checks the
FLAG_SKIP_BUILD
flag to determine whether to build from source.
105-105
: LGTM! The debug output matches the updated flag name.The script prints the value of the
FLAG_SKIP_BUILD
flag for debugging purposes.
122-126
: LGTM! The script preserves the keyring and config files.The change ensures that the keyring is preserved while removing previous chain data, which is crucial for interactions with other networks.
There was a problem hiding this 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
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- contrib/scripts/localnet.sh (7 hunks)
Files skipped from review as they are similar to previous changes (1)
- contrib/scripts/localnet.sh
Purpose / Abstract
A really annoying thing about the
make localnet
script is that it destroys the local keyring on every invocation. It makes interacting with other networks (e.g. mainnet, testnet, and devnet) really annoying.This PR fixes the localnet.sh script to preserve the local keyring and only delete the local data files, so that localnet starts fresh from block 1.
Summary by CodeRabbit
FLAG_NO_BUILD
toFLAG_SKIP_BUILD
for better clarity.localnet.sh
script.