Remove -networkurl flag
This commit is contained in:
parent
468a52737a
commit
a2fbe0c1a8
|
@ -17,7 +17,6 @@ import (
|
||||||
|
|
||||||
var (
|
var (
|
||||||
networkSelected = flag.String("network", "statuschain", "-network=NETWORKID to select network used for tests")
|
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 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")
|
ErrStatusPrivateNetwork = errors.New("network id reserves for private chain network, provide URL")
|
||||||
|
@ -155,15 +154,6 @@ func GetNetworkHash() string {
|
||||||
return GetNetworkHashFromID(GetNetworkID())
|
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
|
// GetNetworkID returns appropriate network id for test based on
|
||||||
// default or provided -network flag.
|
// default or provided -network flag.
|
||||||
func GetNetworkID() int {
|
func GetNetworkID() int {
|
||||||
|
|
Loading…
Reference in New Issue