Removing mainnet from testing networks

This commit is contained in:
Alexander Ewetumo 2017-10-25 13:50:04 +01:00
parent a2fbe0c1a8
commit ec18e0843e
1 changed files with 0 additions and 4 deletions

View File

@ -136,8 +136,6 @@ func GetNetworkURLFromID(id int) (string, error) {
// GetNetworkHashFromID returns the hash associated with a given network id.
func GetNetworkHashFromID(id int) string {
switch id {
case params.MainNetworkID:
return "0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3"
case params.RinkebyNetworkID:
return "0x6341fd3daf94b748c72ced5a5b26028f2474f5f00d824504e4fa37a75767e177"
case params.RopstenNetworkID:
@ -158,8 +156,6 @@ func GetNetworkHash() string {
// default or provided -network flag.
func GetNetworkID() int {
switch strings.ToLower(*networkSelected) {
case fmt.Sprintf("%d", params.MainNetworkID), "mainnet":
return params.MainNetworkID
case fmt.Sprintf("%d", params.RinkebyNetworkID), "rinkeby":
return params.RinkebyNetworkID
case fmt.Sprintf("%d", params.RopstenNetworkID), "ropsten", "testnet":