diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2019-07-24 13:57:06 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2019-07-24 13:57:06 -0500 |
| commit | e3de4aa68bedf7a7adfaf53cc2c132a74dc7fb08 (patch) | |
| tree | 134d499069659c6bbbfd372d32d45a93ea718184 /src/cryptonote_core/cryptonote_core.cpp | |
| parent | 4c4586ca7b9ff5fd7668687a0d8b2bdc8a05f92f (diff) | |
| parent | 1a66a86f94380e24e3aadba649e47708cfe401d0 (diff) | |
| download | monzero-core-e3de4aa68bedf7a7adfaf53cc2c132a74dc7fb08.tar.gz monzero-core-e3de4aa68bedf7a7adfaf53cc2c132a74dc7fb08.tar.xz monzero-core-e3de4aa68bedf7a7adfaf53cc2c132a74dc7fb08.zip | |
Merge pull request #5502
25a7cfd add a few checks where it seems appropriate (moneromooo-monero)
1a66a86 remove unused code (moneromooo-monero)
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 13426230e..83bc5640c 100644 --- a/src/cryptonote_core/cryptonote_core.cpp +++ b/src/cryptonote_core/cryptonote_core.cpp @@ -447,6 +447,7 @@ namespace cryptonote m_nettype = FAKECHAIN; } bool r = handle_command_line(vm); + CHECK_AND_ASSERT_MES(r, false, "Failed to handle command line"); std::string db_type = command_line::get_arg(vm, cryptonote::arg_db_type); std::string db_sync_mode = command_line::get_arg(vm, cryptonote::arg_db_sync_mode); @@ -634,6 +635,7 @@ namespace cryptonote }; const difficulty_type fixed_difficulty = command_line::get_arg(vm, arg_fixed_difficulty); r = m_blockchain_storage.init(db.release(), m_nettype, m_offline, regtest ? ®test_test_options : test_options, fixed_difficulty, get_checkpoints); + CHECK_AND_ASSERT_MES(r, false, "Failed to initialize blockchain storage"); r = m_mempool.init(max_txpool_weight); CHECK_AND_ASSERT_MES(r, false, "Failed to initialize memory pool"); |
