From 891bbf2a61847d58b761af4d094482f4e966a9c1 Mon Sep 17 00:00:00 2001 From: Richard Liu Date: Sun, 16 Sep 2018 00:15:11 -0700 Subject: [PATCH] revert wallet flag. --- client/wallet/main.go | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/client/wallet/main.go b/client/wallet/main.go index fff7e63eb..7ed67fb67 100644 --- a/client/wallet/main.go +++ b/client/wallet/main.go @@ -28,19 +28,7 @@ import ( "github.com/simple-rules/harmony-benchmark/utils" ) -type walletSetting struct { - localDebug bool -} - -var ( - setting walletSetting -) - func main() { - localDebug := flag.Bool("local_debug", false, "If true only use local nodes") - flag.Parse() - setting.localDebug = *localDebug - // Account subcommands accountImportCommand := flag.NewFlagSet("import", flag.ExitOnError) accountImportPtr := accountImportCommand.String("privateKey", "", "Specify the private key to import") @@ -260,8 +248,8 @@ func CreateWalletServerNode() *node.Node { configr := client_config.NewConfig() var shardIDLeaderMap map[uint32]p2p.Peer var clientPeer *p2p.Peer - if setting.localDebug { - configr.ReadConfigFile("local_config_shards.txt") + if true { + configr.ReadConfigFile("local_config2.txt") shardIDLeaderMap = configr.GetShardIdToLeaderMap() clientPeer = configr.GetClientPeer() } else {