From e2620c7c3ec9f315f6c39ad052fa39fe14bf1984 Mon Sep 17 00:00:00 2001 From: Yohan Graterol Date: Sat, 2 Dec 2017 23:15:46 -0500 Subject: [PATCH] Modify network id --- mobile/geth.go | 4 ++-- mobile/params.go | 2 +- params/bootnodes.go | 2 +- swarm/network/protocol.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mobile/geth.go b/mobile/geth.go index 0c26fa0ea1..ea5f635de1 100644 --- a/mobile/geth.go +++ b/mobile/geth.go @@ -137,9 +137,9 @@ func NewNode(datadir string, config *NodeConfig) (stack *Node, _ error) { } // If we have the testnet, hard code the chain configs too if config.EthereumGenesis == TestnetGenesis() { - genesis.Config = params.TestnetChainConfig + genesis.Config = params.CallistoTestnetChainConfig if config.EthereumNetworkID == 1 { - config.EthereumNetworkID = 3 + config.EthereumNetworkID = 7919 } } } diff --git a/mobile/params.go b/mobile/params.go index 14696cc996..5f6855faad 100644 --- a/mobile/params.go +++ b/mobile/params.go @@ -34,7 +34,7 @@ func MainnetGenesis() string { // TestnetGenesis returns the JSON spec to use for the Ethereum test network. func TestnetGenesis() string { - enc, err := json.Marshal(core.DefaultTestnetGenesisBlock()) + enc, err := json.Marshal(core.DefaultCallistoTestnetGenesisBlock()) if err != nil { panic(err) } diff --git a/params/bootnodes.go b/params/bootnodes.go index a619c97388..2c827f348e 100644 --- a/params/bootnodes.go +++ b/params/bootnodes.go @@ -62,5 +62,5 @@ var DiscoveryV5Bootnodes = []string{ // CallistoTestnetBootnodes are the enode URLs of the P2P bootstrap nodes for the // Callisto tes network. var CallistoTestnetBootnodes = []string{ - "enode://ecaebb39dafa9c1d811c4a2544b21a1bf604325f74c568f36ac7a9a5bb91c1b74d3378b059169fb56586735ff8b03533ac1748bec1edd07ea278bb2c40565e4f@52.161.13.24:30303", + "enode://ecaebb39dafa9c1d811c4a2544b21a1bf604325f74c568f36ac7a9a5bb91c1b74d3378b059169fb56586735ff8b03533ac1748bec1edd07ea278bb2c40565e4f@52.161.13.240:30303", } diff --git a/swarm/network/protocol.go b/swarm/network/protocol.go index bea74f8b8a..51e71272cc 100644 --- a/swarm/network/protocol.go +++ b/swarm/network/protocol.go @@ -49,7 +49,7 @@ const ( Version = 0 ProtocolLength = uint64(8) ProtocolMaxMsgSize = 10 * 1024 * 1024 - NetworkId = 3 + NetworkId = 7919 ) // bzz represents the swarm wire protocol