chore: Enable mainnet#623
Merged
mergify[bot] merged 3 commits intosigp:release-v1.0.0from Sep 26, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR enables mainnet support in the Anchor validator by removing testnet restrictions and making mainnet the default network configuration.
- Removed mainnet safeguard from client startup that prevented mainnet usage
- Updated default network from "hoodi" to "mainnet"
- Added mainnet contract address and updated documentation to reflect mainnet support
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| docs/docs/pages/running_an_operator.mdx | Updated documentation to include mainnet as a supported network option |
| docs/docs/pages/cli.mdx | Changed default network parameter from "hoodi" to "mainnet" in CLI documentation |
| anchor/keysplit/README.md | Updated examples and documentation to use mainnet instead of hoodi, removed mainnet restriction note |
| anchor/eth/README.md | Added mainnet contract address and updated description to include mainnet support |
| anchor/common/global_config/src/lib.rs | Changed default hardcoded network from "hoodi" to "mainnet" and added mainnet to allowed values |
| anchor/client/src/lib.rs | Removed mainnet genesis fork version check that blocked mainnet usage |
Comments suppressed due to low confidence (1)
anchor/client/src/lib.rs:1
- The constant
MAINNET_GENESIS_FORK_VERSIONis removed but not used elsewhere in the visible diff. Since this was used for the mainnet check that's being removed, this cleanup is appropriate, but ensure no other references to this constant exist in the codebase.
pub mod cli;
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
diegomrsantos
approved these changes
Sep 25, 2025
Member
Author
|
LFG! 🥳 |
17 tasks
diegomrsantos
pushed a commit
to diegomrsantos/anchor
that referenced
this pull request
Oct 6, 2025
- Allow passing `mainnet` to `network`. - Remove `mainnet` safeguard from client startup function. - Adjust comments and docs. - Make `mainnet` the default network. Co-Authored-By: Daniel Knopik <daniel@dknopik.de>
jking-aus
pushed a commit
to jking-aus/anchor
that referenced
this pull request
Oct 8, 2025
- Allow passing `mainnet` to `network`. - Remove `mainnet` safeguard from client startup function. - Adjust comments and docs. - Make `mainnet` the default network. Co-Authored-By: Daniel Knopik <daniel@dknopik.de>
petarjuki7
pushed a commit
to petarjuki7/anchor
that referenced
this pull request
Oct 16, 2025
- Allow passing `mainnet` to `network`. - Remove `mainnet` safeguard from client startup function. - Adjust comments and docs. - Make `mainnet` the default network. Co-Authored-By: Daniel Knopik <daniel@dknopik.de>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed Changes
mainnettonetwork.mainnetsafeguard from client startup function.mainnetthe default network.