From 4f9eb1a45aec74d3662f0d1f63b3663a8ba9b5d1 Mon Sep 17 00:00:00 2001 From: Leo Chen Date: Tue, 16 Jul 2019 23:00:07 -0700 Subject: [PATCH] [cleanup] remove unused keystore variable Signed-off-by: Leo Chen --- cmd/harmony/main.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cmd/harmony/main.go b/cmd/harmony/main.go index cd0983d94..58aad6131 100644 --- a/cmd/harmony/main.go +++ b/cmd/harmony/main.go @@ -15,7 +15,6 @@ import ( "github.com/ethereum/go-ethereum/log" "github.com/harmony-one/bls/ffi/go/bls" - "github.com/harmony-one/harmony/accounts/keystore" "github.com/harmony-one/harmony/consensus" "github.com/harmony-one/harmony/core" "github.com/harmony-one/harmony/internal/blsgen" @@ -111,7 +110,6 @@ var ( keystoreDir = flag.String("keystore", hmykey.DefaultKeyStoreDir, "The default keystore directory") - ks *keystore.KeyStore genesisAccount = &genesis.DeployAccount{} // logging verbosity @@ -184,8 +182,6 @@ func passphraseForBls() { } func setupGenesisAccount() (isLeader bool) { - ks = hmykey.GetHmyKeyStore() - genesisShardingConfig := core.ShardingSchedule.InstanceForEpoch(big.NewInt(core.GenesisEpoch)) pubKey := setUpConsensusKey(nodeconfig.GetDefaultConfig())