[Config] Update default testnet seeds.#19482
Conversation
| const TESTNET_SEED_PEERS: [(&str, &str, &str); 1] = [( | ||
| "9d5af3ffdff04f7cd51aa9f902253067a40594c7831bf1265503220d585b4d20", | ||
| "0x9d5af3ffdff04f7cd51aa9f902253067a40594c7831bf1265503220d585b4d20", | ||
| "/dns/pfn0.euwe4-seed.fullnode.testnet.aptoslabs.com/tcp/6182/noise-ik/0x9d5af3ffdff04f7cd51aa9f902253067a40594c7831bf1265503220d585b4d20/handshake/0", |
There was a problem hiding this comment.
Let's not do this quite yet. I'm spinning up a new PFN in EU, to use for backups too.
There was a problem hiding this comment.
Aah, we need to unblock testnet now (as discovery is currently broken for anyone without seeds) 😞
There was a problem hiding this comment.
Use these:
- pfn0.usce1.fullnode.testnet.aptoslabs.com/0x64D807A57C289FB26AAB73BFE1F192CDC0BAA25C0EC72F707AEFEFF97300D434
- pfn0.euwe4.fullnode.testnet.aptoslabs.com/0x0058220DE6BA1AF4C4A803E8727D9ED372104D2E60057CB16D6A99E646512826
- pfn0.apne1.fullnode.testnet.aptoslabs.com/0x18FE71C4253468E40C540E31E5127D1E341E20494BC0DE8B4E4D434C14B54608
There was a problem hiding this comment.
Aah, awesome! Thanks boss 😄
| 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 |
There was a problem hiding this comment.
Why remove the testnet PFN seed from here ?
There was a problem hiding this comment.
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.
@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 ?
| const TESTNET_SEED_PEERS: [(&str, &str, &str); 1] = [( | ||
| "9d5af3ffdff04f7cd51aa9f902253067a40594c7831bf1265503220d585b4d20", | ||
| "0x9d5af3ffdff04f7cd51aa9f902253067a40594c7831bf1265503220d585b4d20", | ||
| "/dns/pfn0.euwe4-seed.fullnode.testnet.aptoslabs.com/tcp/6182/noise-ik/0x9d5af3ffdff04f7cd51aa9f902253067a40594c7831bf1265503220d585b4d20/handshake/0", |
There was a problem hiding this comment.
Use these:
- pfn0.usce1.fullnode.testnet.aptoslabs.com/0x64D807A57C289FB26AAB73BFE1F192CDC0BAA25C0EC72F707AEFEFF97300D434
- pfn0.euwe4.fullnode.testnet.aptoslabs.com/0x0058220DE6BA1AF4C4A803E8727D9ED372104D2E60057CB16D6A99E646512826
- pfn0.apne1.fullnode.testnet.aptoslabs.com/0x18FE71C4253468E40C540E31E5127D1E341E20494BC0DE8B4E4D434C14B54608
9365dcf to
2f3deaf
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 2f3deaf. Configure here.
| 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: | ||
| add_seed_peers(fullnode_config, MAINNET_SEED_PEERS) |
There was a problem hiding this comment.
Inconsistent seed peer handling between testnet and mainnet
Low Severity
The TESTNET_SEED_PEERS constant and its usage were fully removed from this CI script rather than updated, while MAINNET_SEED_PEERS is kept and still manually injected. This creates an asymmetry: mainnet historical syncing adds seeds via the Python script (preventing the config optimizer from applying its own), while testnet historical syncing now silently relies on the Rust config optimizer at node startup. Both paths work, but the mixed approach makes it unclear where seed management lives and could confuse future maintainers — as noted by a reviewer who asked "Why remove the testnet PFN seed from here?"
Reviewed by Cursor Bugbot for commit 2f3deaf. Configure here.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
✅ Forge suite
|
✅ Forge suite
|
✅ Forge suite
|
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation and see the Github Action logs for details |


Description
This PR updates the default testnet seeds.
Testing Plan
Manual verification.
Note
Medium Risk
Changes default network bootstrap peers for testnet and alters CI fullnode-sync seeding behavior; misconfigured seed addresses could cause nodes or workflows to have connectivity/sync issues.
Overview
Updates the default testnet seed peer set used by the config optimizer to a new list of PFN-based seeds and corresponding addresses/keys.
Also simplifies the
fullnode-syncGitHub Action so seed peers are only injected when doing historical sync on mainnet, removing the testnet-specific seed peer constant and branch.Reviewed by Cursor Bugbot for commit 2f3deaf. Bugbot is set up for automated code reviews on this repo. Configure here.