[staking] remove unused gsif call in node

Signed-off-by: Leo Chen <leo@harmony.one>
pull/1095/head
Leo Chen 6 years ago
parent 9eb22146ce
commit 245fdb90a9
  1. 7
      cmd/harmony/main.go

@ -303,13 +303,6 @@ func setUpConsensusAndNode(nodeConfig *nodeconfig.ConfigType) *node.Node {
utils.GetLogInstance().Info("node account set", utils.GetLogInstance().Info("node account set",
"address", common.MustAddressToBech32(currentNode.StakingAccount.Address)) "address", common.MustAddressToBech32(currentNode.StakingAccount.Address))
if gsif, err := consensus.NewGenesisStakeInfoFinder(); err == nil {
currentConsensus.SetStakeInfoFinder(gsif)
} else {
_, _ = fmt.Fprintf(os.Stderr, "Cannot initialize stake info: %v\n", err)
os.Exit(1)
}
// TODO: refactor the creation of blockchain out of node.New() // TODO: refactor the creation of blockchain out of node.New()
currentConsensus.ChainReader = currentNode.Blockchain() currentConsensus.ChainReader = currentNode.Blockchain()

Loading…
Cancel
Save