mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
mobile: allow for configuring goerli and rinkeby nodes
This commit is contained in:
parent
82ece4d65c
commit
11948936a6
1 changed files with 14 additions and 0 deletions
|
|
@ -153,6 +153,20 @@ func NewNode(datadir string, config *NodeConfig) (stack *Node, _ error) {
|
|||
config.EthereumNetworkID = 3
|
||||
}
|
||||
}
|
||||
// If we have the Rinkeby testnet, hard code the chain configs too
|
||||
if config.EthereumGenesis == RinkebyGenesis() {
|
||||
genesis.Config = params.RinkebyChainConfig
|
||||
if config.EthereumNetworkID == 1 {
|
||||
config.EthereumNetworkID = 4
|
||||
}
|
||||
}
|
||||
// If we have the Goerli testnet, hard code the chain configs too
|
||||
if config.EthereumGenesis == GoerliGenesis() {
|
||||
genesis.Config = params.GoerliChainConfig
|
||||
if config.EthereumNetworkID == 1 {
|
||||
config.EthereumNetworkID = 5
|
||||
}
|
||||
}
|
||||
}
|
||||
// Register the Ethereum protocol if requested
|
||||
if config.EthereumEnabled {
|
||||
|
|
|
|||
Loading…
Reference in a new issue