aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/cryptonote_core.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2019-11-02 17:30:09 +0200
committerRiccardo Spagni <ric@spagni.net>2019-11-02 17:30:09 +0200
commitda31077bed2133db46c05f7030aefdb6d88d0d3b (patch)
tree54318a94f08b1aa7e1941ec980ce9af730956973 /src/cryptonote_core/cryptonote_core.cpp
parente41fc4bfc8c37d45e39152042f53e40e48632fa4 (diff)
parentebc6ce44f407fab07955fc230f4cab59742fd959 (diff)
downloadmonzero-core-da31077bed2133db46c05f7030aefdb6d88d0d3b.tar.gz
monzero-core-da31077bed2133db46c05f7030aefdb6d88d0d3b.tar.xz
monzero-core-da31077bed2133db46c05f7030aefdb6d88d0d3b.zip
Merge pull request #6047
ebc6ce44f cryptonote: untangle dependency from miner to blockchain (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_core/cryptonote_core.cpp')
-rw-r--r--src/cryptonote_core/cryptonote_core.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp
index acb494a49..02620996e 100644
--- a/src/cryptonote_core/cryptonote_core.cpp
+++ b/src/cryptonote_core/cryptonote_core.cpp
@@ -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(""),