aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/miner.cpp
diff options
context:
space:
mode:
authorZachary Michaels <mikezackles@gmail.com>2014-09-09 10:58:53 -0400
committerRiccardo Spagni <ric@spagni.net>2014-09-15 15:54:59 +0200
commitd03308734b1487540af062ab50c94cc7bb3e668e (patch)
tree59b26c94f7449bb6e57a9c4c7a0ec3983c1d2feb /src/cryptonote_core/miner.cpp
parentAdd testnet seed nodes (diff)
downloadmonero-d03308734b1487540af062ab50c94cc7bb3e668e.tar.xz
Separate testnet address prefix
Diffstat (limited to 'src/cryptonote_core/miner.cpp')
-rw-r--r--src/cryptonote_core/miner.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptonote_core/miner.cpp b/src/cryptonote_core/miner.cpp
index 81dc4a692..b2adfe39c 100644
--- a/src/cryptonote_core/miner.cpp
+++ b/src/cryptonote_core/miner.cpp
@@ -171,7 +171,7 @@ namespace cryptonote
command_line::add_arg(desc, arg_mining_threads);
}
//-----------------------------------------------------------------------------------------------------
- bool miner::init(const boost::program_options::variables_map& vm)
+ bool miner::init(const boost::program_options::variables_map& vm, bool testnet)
{
if(command_line::has_arg(vm, arg_extra_messages))
{
@@ -198,7 +198,7 @@ namespace cryptonote
if(command_line::has_arg(vm, arg_start_mining))
{
- if(!cryptonote::get_account_address_from_str(m_mine_address, command_line::get_arg(vm, arg_start_mining)))
+ if(!cryptonote::get_account_address_from_str(m_mine_address, testnet, command_line::get_arg(vm, arg_start_mining)))
{
LOG_ERROR("Target account address " << command_line::get_arg(vm, arg_start_mining) << " has wrong format, starting daemon canceled");
return false;