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); }
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); }