Modify network id

This commit is contained in:
Yohan Graterol 2017-12-02 23:15:46 -05:00
parent 0ae5b1602a
commit e2620c7c3e
4 changed files with 5 additions and 5 deletions

View file

@ -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
}
}
}

View file

@ -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)
}

View file

@ -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",
}

View file

@ -49,7 +49,7 @@ const (
Version = 0
ProtocolLength = uint64(8)
ProtocolMaxMsgSize = 10 * 1024 * 1024
NetworkId = 3
NetworkId = 7919
)
// bzz represents the swarm wire protocol