-
Notifications
You must be signed in to change notification settings - Fork 629
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
feat: Update neard init to specify config file type to download #12072
Conversation
Adding @khorolets as reviewer due to the flag change for Indexers. |
tools/indexer/example/src/configs.rs
Outdated
@@ -1,5 +1,8 @@ | |||
use near_indexer::near_primitives::types::Gas; | |||
|
|||
/// Indexer uses the RPC configuration type. | |||
const DOWNLOAD_CONFIG_TYPE: &str = "rpc"; |
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.
@khorolets please check here. simply I do not change --download-config
flag, it is still boolean, but I map it to rpc
config if it is specified.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #12072 +/- ##
==========================================
+ Coverage 71.43% 71.59% +0.15%
==========================================
Files 815 815
Lines 164218 164279 +61
Branches 164218 164279 +61
==========================================
+ Hits 117317 117609 +292
+ Misses 41772 41535 -237
- Partials 5129 5135 +6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Looks great! Thank you!
We change the
--download-config
parameter to take a string.neard init --download-config validator
downloads theconfig.json
file for validators (tracking single shard, loading memtries).neard init --download-config rpc
downloads theconfig.json
file for non-validator RPC nodes (tracking all shards, NOT loading memtries).neard init --download-config archival
downloads theconfig.json
file for non-validator archival nodes (tracking all shards, NOT loading memtries, archive field set to true).neard init --download-config
(with no value) defaults tovalidator
config (for backwards compatibility).We map the flag to a specific URL containing the config type.
The new config files per config type can be found at https://github.com/tayfunelmas/near-configs.
The new config files are already uploaded to AWS S3 with the new URLs.
NOTE: For indexer and chainsync-loadtest params, we use
rpc
config type.Next: We will update the Near validator documentation to use the new flag value.
Tracking issue: #12070