예제 #1
0
        private bool OnStartConsensusCommand(string[] args)
        {
            if (consensus != null)
            {
                return(true);
            }
            if (Program.Wallet == null)
            {
                Console.WriteLine("You have to open the wallet first.");
                return(true);
            }
            string log_dictionary = Path.Combine(AppContext.BaseDirectory, "Logs");

            consensus  = new ConsensusService(LocalNode, Program.Wallet, log_dictionary);
            ShowPrompt = false;
            consensus.Start();
            return(true);
        }