Update testnet network id to match new chain id

This commit is contained in:
Shane Bammel 2022-03-11 14:37:55 -06:00
parent a82a55f9fc
commit 6c61bcc3f9
4 changed files with 5 additions and 5 deletions

View File

@ -1692,7 +1692,7 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) {
SetDNSDiscoveryDefaults(cfg, params.MainnetGenesisHash) SetDNSDiscoveryDefaults(cfg, params.MainnetGenesisHash)
case ctx.GlobalBool(PulseChainTestnetFlag.Name): case ctx.GlobalBool(PulseChainTestnetFlag.Name):
if !ctx.GlobalIsSet(NetworkIdFlag.Name) { if !ctx.GlobalIsSet(NetworkIdFlag.Name) {
cfg.NetworkId = 940 cfg.NetworkId = 941
} }
cfg.Genesis = core.DefaultPulseChainTestnetGenesisBlock() cfg.Genesis = core.DefaultPulseChainTestnetGenesisBlock()
SetDNSDiscoveryDefaults(cfg, params.MainnetGenesisHash) SetDNSDiscoveryDefaults(cfg, params.MainnetGenesisHash)

View File

@ -258,7 +258,7 @@ func (g *Genesis) configOrDefault(ghash common.Hash, chainId uint64) *params.Cha
switch chainId { switch chainId {
case 369: case 369:
return params.PulseChainConfig return params.PulseChainConfig
case 940: case 941:
return params.PulseChainTestnetConfig return params.PulseChainTestnetConfig
default: default:
return params.MainnetChainConfig return params.MainnetChainConfig

View File

@ -170,7 +170,7 @@ func NewNode(datadir string, config *NodeConfig) (stack *Node, _ error) {
if config.EthereumGenesis == PulseChainTestnetGenesis() { if config.EthereumGenesis == PulseChainTestnetGenesis() {
genesis.Config = params.PulseChainTestnetConfig genesis.Config = params.PulseChainTestnetConfig
if config.EthereumNetworkID == 1 { if config.EthereumNetworkID == 1 {
config.EthereumNetworkID = 940 config.EthereumNetworkID = 941
} }
} }
// If we have the Ropsten testnet, hard code the chain configs too // If we have the Ropsten testnet, hard code the chain configs too

View File

@ -114,7 +114,7 @@ func KnownDNSNetwork(genesis common.Hash, networkID uint64, protocol string) str
var dnsPrefix = "enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@" var dnsPrefix = "enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@"
var tld = ".ethdisco.net" var tld = ".ethdisco.net"
if networkID == 369 || networkID == 940 { if networkID == 369 || networkID == 941 {
tld = ".pulsedisco.net" tld = ".pulsedisco.net"
dnsPrefix = "enrtree://APFXO36RU3TWV7XFGWI2TYF5IDA3WM2GPTRL3TCZINWHZX4R6TAOK@" dnsPrefix = "enrtree://APFXO36RU3TWV7XFGWI2TYF5IDA3WM2GPTRL3TCZINWHZX4R6TAOK@"
} }
@ -124,7 +124,7 @@ func KnownDNSNetwork(genesis common.Hash, networkID uint64, protocol string) str
switch networkID { switch networkID {
case 369: case 369:
net = "PulseChain" net = "PulseChain"
case 940: case 941:
net = "PulseChainTestnet" net = "PulseChainTestnet"
default: default:
net = "mainnet" net = "mainnet"