示例#1
0
        private bool OnStartConsensusCommand(string[] args)
        {
            if (consensus != null)
            {
                return(true);
            }
            if (NoWallet())
            {
                return(true);
            }
            string log_dictionary = Path.Combine(AppContext.BaseDirectory, "Logs");

            consensus  = new ConsensusWithLog(LocalNode, Program.Wallet, log_dictionary);
            ShowPrompt = false;
            consensus.Start();
            return(true);
        }
示例#2
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 ConsensusWithLog(LocalNode, Program.Wallet, log_dictionary);
            ShowPrompt = false;
            consensus.Start();
            return(true);
        }