mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-22 11:31:02 +00:00
Update testnet network id to match new chain id
This commit is contained in:
parent
a82a55f9fc
commit
6c61bcc3f9
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user