Skip to content
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

--networkid doesn't work #21550

Closed
vietthang207 opened this issue Sep 11, 2020 · 3 comments
Closed

--networkid doesn't work #21550

vietthang207 opened this issue Sep 11, 2020 · 3 comments

Comments

@vietthang207
Copy link

Hi there,

Please note that this is an issue tracker reserved for bug reports and feature requests.

For general questions please use discord or the Ethereum stack exchange at https://ethereum.stackexchange.com.

System information

Geth version: 1.9.19
OS & Version: Linux
Commit hash : (if develop)

Expected behaviour

The docs at https://github.com/ethereum/go-ethereum/wiki/Command-Line-Options list --networkid as a valid option. When running with --networkid 3, the node should sync with ropsten network. It works fine with --testnet and --ropsten

Actual behaviour

Node can't handshake with peers

Steps to reproduce the behaviour

Backtrace

[backtrace]
@vietthang207
Copy link
Author

When running with --testnet and --ropsten there is a log line Starting Geth on Ropsten testnet.... This line didn't show up when I run with --networkid 3

@MariusVanDerWijden
Copy link
Member

Hey @vietthang207 we had several discussions about this already. See for example here: #20968
We came to the conclusion that the --networkid should only be used if you know what you're doing. It does not have any impact on the configuration you use to sync the chain. You choose the configuration by --ropsten or --goerli. The --networkid only sets the network id, it uses the default config for mainnet. That's why you can't sync properly.

@adamschmideg Maybe we should add an explanation to --networkid that it does not choose the chainconfig

@vietthang207
Copy link
Author

Thanks for the clarification! I just think that the documentation need an update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants