cryptonote: untangle dependency from miner to blockchain

It causes link errors at least on mac
This commit is contained in:
moneromooo-monero
2019-10-31 01:05:58 +00:00
parent bb04201505
commit d31024c2e1
6 changed files with 24 additions and 14 deletions
+3 -1
View File
@@ -223,7 +223,9 @@ namespace cryptonote
core::core(i_cryptonote_protocol* pprotocol):
m_mempool(m_blockchain_storage),
m_blockchain_storage(m_mempool),
m_miner(this, &m_blockchain_storage),
m_miner(this, [this](const cryptonote::block &b, uint64_t height, unsigned int threads, crypto::hash &hash) {
return cryptonote::get_block_longhash(&m_blockchain_storage, b, hash, height, threads);
}),
m_starter_message_showed(false),
m_target_blockchain_height(0),
m_checkpoints_path(""),