[cleanup] remove unused keystore variable

Signed-off-by: Leo Chen <leo@harmony.one>
pull/1224/head
Leo Chen 5 years ago
parent 25e58685a7
commit 4f9eb1a45a
  1. 4
      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())

Loading…
Cancel
Save