diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-10-31 01:05:58 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-10-31 01:06:42 +0000 |
| commit | ebc6ce44f407fab07955fc230f4cab59742fd959 (patch) | |
| tree | e440ac44d8fb69c6f53d93252814c6b679fc89da /src/cryptonote_core/cryptonote_tx_utils.cpp | |
| parent | 4c9fd8d86d59752b436cddf5aac448351f5bf474 (diff) | |
| download | monzero-core-ebc6ce44f407fab07955fc230f4cab59742fd959.tar.gz monzero-core-ebc6ce44f407fab07955fc230f4cab59742fd959.tar.xz monzero-core-ebc6ce44f407fab07955fc230f4cab59742fd959.zip | |
cryptonote: untangle dependency from miner to blockchain
It causes link errors at least on mac
Diffstat (limited to 'src/cryptonote_core/cryptonote_tx_utils.cpp')
| -rw-r--r-- | src/cryptonote_core/cryptonote_tx_utils.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cryptonote_core/cryptonote_tx_utils.cpp b/src/cryptonote_core/cryptonote_tx_utils.cpp index 3e1b4e97f..f50fc61a5 100644 --- a/src/cryptonote_core/cryptonote_tx_utils.cpp +++ b/src/cryptonote_core/cryptonote_tx_utils.cpp @@ -663,7 +663,9 @@ namespace cryptonote bl.minor_version = CURRENT_BLOCK_MINOR_VERSION; bl.timestamp = 0; bl.nonce = nonce; - miner::find_nonce_for_given_block(NULL, bl, 1, 0); + miner::find_nonce_for_given_block([](const cryptonote::block &b, uint64_t height, unsigned int threads, crypto::hash &hash){ + return cryptonote::get_block_longhash(NULL, b, hash, height, threads); + }, bl, 1, 0); bl.invalidate_hashes(); return true; } |
