diff options
| author | Howard Chu <hyc@symas.com> | 2019-04-23 20:32:27 +0100 |
|---|---|---|
| committer | Howard Chu <hyc@symas.com> | 2019-09-25 21:29:42 +0100 |
| commit | 81c2ad6d5b17cf280a4a55fd6159e8dde423f5a8 (patch) | |
| tree | 7bb731b721183e73afbb60e01cf3759723e4948b /src/cryptonote_core/cryptonote_core.cpp | |
| parent | cb6f96b9d13812b819b6fc5960e5851098554fba (diff) | |
| download | monzero-core-81c2ad6d5b17cf280a4a55fd6159e8dde423f5a8.tar.gz monzero-core-81c2ad6d5b17cf280a4a55fd6159e8dde423f5a8.tar.xz monzero-core-81c2ad6d5b17cf280a4a55fd6159e8dde423f5a8.zip | |
RandomX integration
Support RandomX PoW algorithm
Diffstat (limited to 'src/cryptonote_core/cryptonote_core.cpp')
| -rw-r--r-- | src/cryptonote_core/cryptonote_core.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp index e34ab8fbd..245be5778 100644 --- a/src/cryptonote_core/cryptonote_core.cpp +++ b/src/cryptonote_core/cryptonote_core.cpp @@ -219,7 +219,7 @@ namespace cryptonote core::core(i_cryptonote_protocol* pprotocol): m_mempool(m_blockchain_storage), m_blockchain_storage(m_mempool), - m_miner(this), + m_miner(this, &m_blockchain_storage), m_starter_message_showed(false), m_target_blockchain_height(0), m_checkpoints_path(""), @@ -655,6 +655,8 @@ namespace cryptonote CHECK_AND_ASSERT_MES(r, false, "Failed to initialize blockchain storage"); block_sync_size = command_line::get_arg(vm, arg_block_sync_size); + if (block_sync_size > BLOCKS_SYNCHRONIZING_MAX_COUNT) + MERROR("Error --block-sync-size cannot be greater than " << BLOCKS_SYNCHRONIZING_MAX_COUNT); MGINFO("Loading checkpoints"); |
