diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-02-21 15:06:07 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-02-21 15:06:07 +0000 |
| commit | 417b126fc420b7bac9a385f9576a5b80e840ee67 (patch) | |
| tree | 2be65465f3abfa317a140b773344a5475c9568cf /src/cryptonote_core/cryptonote_core.cpp | |
| parent | 2b67346ded70b8371a7ad30655529d3165a6d561 (diff) | |
| download | monzero-core-417b126fc420b7bac9a385f9576a5b80e840ee67.tar.gz monzero-core-417b126fc420b7bac9a385f9576a5b80e840ee67.tar.xz monzero-core-417b126fc420b7bac9a385f9576a5b80e840ee67.zip | |
Fix core_tests breaking on startup
You're wondering how this fixes core tests, aren't you...
It prevents the miner (initialized by cryptonote::core) from
breaking trying to access arguments that were not added.
Since the tests don't use the miner directly, it makes more
sense to have cryptonote_core add those, since it also uses
the miner.
Diffstat (limited to 'src/cryptonote_core/cryptonote_core.cpp')
| -rw-r--r-- | src/cryptonote_core/cryptonote_core.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp index 73f01559d..ce5acdaf8 100644 --- a/src/cryptonote_core/cryptonote_core.cpp +++ b/src/cryptonote_core/cryptonote_core.cpp @@ -155,6 +155,8 @@ namespace cryptonote // we now also need some of net_node's options (p2p bind arg, for separate data dir) command_line::add_arg(desc, nodetool::arg_testnet_p2p_bind_port, false); command_line::add_arg(desc, nodetool::arg_p2p_bind_port, false); + + miner::init_options(desc); } //----------------------------------------------------------------------------------------------- bool core::handle_command_line(const boost::program_options::variables_map& vm) |
