diff options
author | Wei-Ning Huang <w@dexon.org> | 2019-03-18 14:32:44 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 13:50:04 +0800 |
commit | 41f11316cf0f764b4dc7f0047e68ea04d228f8c9 (patch) | |
tree | 6db0500e8a4859ab392f038cfe55e3292fa8ada7 | |
parent | e9426287b9eae8c5c62f8c7f82224ea0c1ef83c8 (diff) | |
download | dexon-41f11316cf0f764b4dc7f0047e68ea04d228f8c9.tar.gz dexon-41f11316cf0f764b4dc7f0047e68ea04d228f8c9.tar.zst dexon-41f11316cf0f764b4dc7f0047e68ea04d228f8c9.zip |
cmd: fix default recovery network RPC URL
-rw-r--r-- | cmd/utils/flags.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index 6b0c682a7..3b68794d5 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -1265,6 +1265,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 { @@ -1273,7 +1274,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): @@ -1281,7 +1282,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): @@ -1289,7 +1290,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): @@ -1297,7 +1298,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 ( |