-
Notifications
You must be signed in to change notification settings - Fork 3.9k
[Config] Update default testnet seeds. #19482
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,16 +36,6 @@ | |
| NUMBER_OF_HISTORICAL_TRANSACTIONS_TO_SYNC = 2000000 # The number of historical transactions to sync (when syncing from genesis) | ||
| SYNCING_DELTA_VERSIONS = 20000 # The number of versions to sync beyond the highest known at the job start | ||
|
|
||
| # Testnet seed peer constants | ||
| TESTNET_SEED_PEERS = { | ||
| "9D5AF3FFDFF04F7CD51AA9F902253067A40594C7831BF1265503220D585B4D20": { | ||
| "addresses": [ | ||
| "/dns4/pfn0.euwe4-seed.fullnode.testnet.aptoslabs.com/tcp/6182/noise-ik/9D5AF3FFDFF04F7CD51AA9F902253067A40594C7831BF1265503220D585B4D20/handshake/0" | ||
| ], | ||
| "role": "Upstream", | ||
| }, | ||
| } | ||
|
|
||
| # Mainnet seed peer constants | ||
| MAINNET_SEED_PEERS = { | ||
| "A118B9BBBB8670D026C59C494317F7B6AA449A8E1B6AE0F9A6D434478AD1CC35": { | ||
|
|
@@ -329,12 +319,9 @@ def setup_fullnode_config(network, bootstrapping_mode, continuous_syncing_mode, | |
| # Enable storage sharding (AIP-97) | ||
| fullnode_config['storage']['rocksdb_configs'] = {"enable_storage_sharding": True} | ||
|
|
||
| # If we're syncing historical data, we need to add seed peers | ||
| if syncing_historical_data: | ||
| if network == MAINNET_STRING: | ||
| add_seed_peers(fullnode_config, MAINNET_SEED_PEERS) | ||
| elif network == TESTNET_STRING: | ||
| add_seed_peers(fullnode_config, TESTNET_SEED_PEERS) | ||
| # If we're syncing historical data on mainnet, we need to add seed peers | ||
| if syncing_historical_data and network == MAINNET_STRING: | ||
|
JoshLind marked this conversation as resolved.
|
||
| add_seed_peers(fullnode_config, MAINNET_SEED_PEERS) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Inconsistent seed peer handling between testnet and mainnetLow Severity The Reviewed by Cursor Bugbot for commit 2f3deaf. Configure here. |
||
|
|
||
| # Write the config file back to disk | ||
| with open(FULLNODE_CONFIG_NAME, "w") as 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.
Why remove the testnet PFN seed from here ?
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.
Aah, because we'll inject them by default on node startup, so no need to add them again here (manually in the node config) 😄
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.
@JoshLind would it make sense to keep the seed map empty just in case we need to add seeds later ? Does the seed parameter override the built-in peers or is it additive ?