aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2019-03-18 14:32:44 +0800
committerWei-Ning Huang <w@dexon.org>2019-03-18 14:32:44 +0800
commit4d0c2fc6a1e9014789797ed84dce6df663ba28df (patch)
tree1aadd7749a042c360086c900533cdfd279712773
parentd10d466681c8cb72ba6c435f9b97f037699b036d (diff)
downloaddexon-4d0c2fc6a1e9014789797ed84dce6df663ba28df.tar.gz
dexon-4d0c2fc6a1e9014789797ed84dce6df663ba28df.tar.zst
dexon-4d0c2fc6a1e9014789797ed84dce6df663ba28df.zip
cmd: fix default recovery network RPC URL
-rw-r--r--cmd/utils/flags.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go
index 9f1080f45..8bb6e4e97 100644
--- a/cmd/utils/flags.go
+++ b/cmd/utils/flags.go
@@ -1257,6 +1257,7 @@ func SetDexConfig(ctx *cli.Context, stack *node.Node, cfg *dex.Config) {
}
cfg.RecoveryNetworkRPC = ctx.GlobalString(RecoveryNetworkRPCFlag.Name)
+ defaultRecoveryNetworkRPC := "https://rinkeby.infura.io"
// Override any default configs for hard coded networks.
switch {
@@ -1265,7 +1266,7 @@ func SetDexConfig(ctx *cli.Context, stack *node.Node, cfg *dex.Config) {
cfg.NetworkId = 238
}
if !ctx.GlobalIsSet(RecoveryNetworkRPCFlag.Name) {
- cfg.RecoveryNetworkRPC = "http://rinkeby.infura.io"
+ cfg.RecoveryNetworkRPC = defaultRecoveryNetworkRPC
}
cfg.Genesis = core.DefaultTestnetGenesisBlock()
case ctx.GlobalBool(TaipeiFlag.Name):
@@ -1273,7 +1274,7 @@ func SetDexConfig(ctx *cli.Context, stack *node.Node, cfg *dex.Config) {
cfg.NetworkId = 239
}
if !ctx.GlobalIsSet(RecoveryNetworkRPCFlag.Name) {
- cfg.RecoveryNetworkRPC = "http://rinkeby.infura.io"
+ cfg.RecoveryNetworkRPC = defaultRecoveryNetworkRPC
}
cfg.Genesis = core.DefaultTaipeiGenesisBlock()
case ctx.GlobalBool(YilanFlag.Name):
@@ -1281,7 +1282,7 @@ func SetDexConfig(ctx *cli.Context, stack *node.Node, cfg *dex.Config) {
cfg.NetworkId = 240
}
if !ctx.GlobalIsSet(RecoveryNetworkRPCFlag.Name) {
- cfg.RecoveryNetworkRPC = "http://rinkeby.infura.io"
+ cfg.RecoveryNetworkRPC = defaultRecoveryNetworkRPC
}
cfg.Genesis = core.DefaultYilanGenesisBlock()
case ctx.GlobalBool(DeveloperFlag.Name):
@@ -1289,7 +1290,7 @@ func SetDexConfig(ctx *cli.Context, stack *node.Node, cfg *dex.Config) {
cfg.NetworkId = 1337
}
if !ctx.GlobalIsSet(RecoveryNetworkRPCFlag.Name) {
- cfg.RecoveryNetworkRPC = "http://rinkeby.infura.io"
+ cfg.RecoveryNetworkRPC = defaultRecoveryNetworkRPC
}
// Create new developer account or reuse existing one
var (