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)
case ctx.GlobalBool(PulseChainTestnetFlag.Name):
if !ctx.GlobalIsSet(NetworkIdFlag.Name) {
cfg.NetworkId = 940
cfg.NetworkId = 941
}
cfg.Genesis = core.DefaultPulseChainTestnetGenesisBlock()
SetDNSDiscoveryDefaults(cfg, params.MainnetGenesisHash)

View File

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

View File

@ -170,7 +170,7 @@ func NewNode(datadir string, config *NodeConfig) (stack *Node, _ error) {
if config.EthereumGenesis == PulseChainTestnetGenesis() {
genesis.Config = params.PulseChainTestnetConfig
if config.EthereumNetworkID == 1 {
config.EthereumNetworkID = 940
config.EthereumNetworkID = 941
}
}
// 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 tld = ".ethdisco.net"
if networkID == 369 || networkID == 940 {
if networkID == 369 || networkID == 941 {
tld = ".pulsedisco.net"
dnsPrefix = "enrtree://APFXO36RU3TWV7XFGWI2TYF5IDA3WM2GPTRL3TCZINWHZX4R6TAOK@"
}
@ -124,7 +124,7 @@ func KnownDNSNetwork(genesis common.Hash, networkID uint64, protocol string) str
switch networkID {
case 369:
net = "PulseChain"
case 940:
case 941:
net = "PulseChainTestnet"
default:
net = "mainnet"