Remove -networkurl flag

This commit is contained in:
Alexander Ewetumo 2017-10-25 13:48:09 +01:00
parent 468a52737a
commit a2fbe0c1a8
1 changed files with 0 additions and 10 deletions

View File

@ -17,7 +17,6 @@ import (
var (
networkSelected = flag.String("network", "statuschain", "-network=NETWORKID to select network used for tests")
networkURL = flag.String("networkurl", "", "-networkurl=https://ropsten.bob.com/433JU78sdw= to provide a URL for giving network.")
// ErrStatusPrivateNetwork is returned when network id is for a private chain network, whoes URL must be provided.
ErrStatusPrivateNetwork = errors.New("network id reserves for private chain network, provide URL")
@ -155,15 +154,6 @@ func GetNetworkHash() string {
return GetNetworkHashFromID(GetNetworkID())
}
// GetNetworkURL returns appropriate network
func GetNetworkURL() (string, error) {
if *networkURL != "" {
return *networkURL, nil
}
return GetNetworkURLFromID(GetNetworkID())
}
// GetNetworkID returns appropriate network id for test based on
// default or provided -network flag.
func GetNetworkID() int {