aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/cryptonote_core.cpp
diff options
context:
space:
mode:
authorZachary Michaels <mikezackles@gmail.com>2014-07-16 13:30:15 -0400
committerRiccardo Spagni <ric@spagni.net>2014-09-15 15:53:01 +0200
commit07470fd400ee30b84f6227edffb24094d03781cb (patch)
tree6399848a2020528971884f5f625d0a2403f92327 /src/cryptonote_core/cryptonote_core.cpp
parent32004a756c605b322d07d6f9917c8edaf6ca8961 (diff)
downloadmonzero-core-07470fd400ee30b84f6227edffb24094d03781cb.tar.gz
monzero-core-07470fd400ee30b84f6227edffb24094d03781cb.tar.xz
monzero-core-07470fd400ee30b84f6227edffb24094d03781cb.zip
Add testnet flag
Source: cryptonotefoundation
Diffstat (limited to 'src/cryptonote_core/cryptonote_core.cpp')
-rw-r--r--src/cryptonote_core/cryptonote_core.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp
index 637b8fea6..3ff139c95 100644
--- a/src/cryptonote_core/cryptonote_core.cpp
+++ b/src/cryptonote_core/cryptonote_core.cpp
@@ -116,14 +116,14 @@ namespace cryptonote
return m_blockchain_storage.get_alternative_blocks_count();
}
//-----------------------------------------------------------------------------------------------
- bool core::init(const boost::program_options::variables_map& vm)
+ bool core::init(const boost::program_options::variables_map& vm, bool testnet)
{
bool r = handle_command_line(vm);
r = m_mempool.init(m_config_folder);
CHECK_AND_ASSERT_MES(r, false, "Failed to initialize memory pool");
- r = m_blockchain_storage.init(m_config_folder);
+ r = m_blockchain_storage.init(m_config_folder, testnet);
CHECK_AND_ASSERT_MES(r, false, "Failed to initialize blockchain storage");
r = m_miner.init(vm);