diff options
author | Unknown <fireice2@o2.pl> | 2017-11-16 13:42:27 +0000 |
---|---|---|
committer | Unknown <fireice2@o2.pl> | 2017-11-16 13:42:27 +0000 |
commit | cabd46f39fdadad7345f9603ccdcf1daf49e1a9c (patch) | |
tree | 2b5dc47b60d3b1d001a0bf4830b7bf47d253190c /xmrstak/cli | |
parent | 157dd16574c04cb78b704bd809c8919527bd7b61 (diff) | |
download | xmr-stak-cabd46f39fdadad7345f9603ccdcf1daf49e1a9c.zip xmr-stak-cabd46f39fdadad7345f9603ccdcf1daf49e1a9c.tar.gz |
Remove whitespace lines
Diffstat (limited to 'xmrstak/cli')
-rw-r--r-- | xmrstak/cli/cli-miner.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/xmrstak/cli/cli-miner.cpp b/xmrstak/cli/cli-miner.cpp index 9ba495e..90da834 100644 --- a/xmrstak/cli/cli-miner.cpp +++ b/xmrstak/cli/cli-miner.cpp @@ -59,7 +59,7 @@ void help() { using namespace std; using namespace xmrstak; - + cout<<"Usage: "<<params::inst().binaryName<<" [OPTION]..."<<endl; cout<<" "<<endl; cout<<" -h, --help show this help"<<endl; @@ -113,7 +113,7 @@ inline const char* bool_to_str(bool v) std::string get_multipool_entry(bool& final) { std::cout<<std::endl<<"- Next Pool:"<<std::endl<<std::endl; - + std::string pool; if(xmrstak::params::inst().currency == "monero") std::cout<<"- Pool address: e.g. pool.usxmrpool.com:3333"<<std::endl; @@ -147,7 +147,7 @@ std::string get_multipool_entry(bool& final) } final = !read_yes_no("- Do you want to add another pool? (y/n)"); - + return "\t{\"pool_address\" : \"" + pool +"\", \"wallet_address\" : \"" + userName + "\", \"pool_password\" : \"" + passwd + "\", \"use_nicehash\" : " + bool_to_str(nicehash) + ", \"use_tls\" : " + bool_to_str(tls) + ", \"tls_fingerprint\" : \"\", \"pool_weight\" : " + std::to_string(pool_weight) + " },\n"; @@ -217,13 +217,13 @@ void do_guided_config(bool userSetPasswd) bool tls = read_yes_no("- Does this pool port support TLS/SSL? Use no if unknown. (y/N)"); #endif bool nicehash = read_yes_no("- Do you want to use nicehash on this pool? (y/n)"); - + bool multipool; if(!userSetPool) multipool = read_yes_no("- Do you want to use multiple pools? (y/n)"); else multipool = false; - + int64_t pool_weight; if(multipool) { @@ -241,7 +241,7 @@ void do_guided_config(bool userSetPasswd) } else pool_weight = 1; - + std::string pool_table; pool_table += "\t{\"pool_address\" : \"" + pool +"\", \"wallet_address\" : \"" + userName + "\", \"pool_password\" : \"" + passwd + "\", \"use_nicehash\" : " + bool_to_str(nicehash) + ", \"use_tls\" : " + bool_to_str(tls) + @@ -256,7 +256,7 @@ void do_guided_config(bool userSetPasswd) } while(!final); } - + configTpl.replace("POOLCONF", pool_table); configTpl.replace("CURRENCY", currency); configTpl.write(params::inst().configFile); |