aboutsummaryrefslogtreecommitdiff
path: root/tests/core_tests
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-11-08 17:30:18 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-08-27 15:13:00 +0000
commit9d42649d58a1a898b8fd1be17f42fb6b7ad1f6ee (patch)
treed3e5a6a12cbd0bd4d3906afd4d9b350667aceda3 /tests/core_tests
parentMerge pull request #6771 (diff)
downloadmonero-9d42649d58a1a898b8fd1be17f42fb6b7ad1f6ee.tar.xz
core: fix mining from a block that's not the current top
Diffstat (limited to 'tests/core_tests')
-rw-r--r--tests/core_tests/chaingen.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/core_tests/chaingen.cpp b/tests/core_tests/chaingen.cpp
index f442a4977..1222a0b5c 100644
--- a/tests/core_tests/chaingen.cpp
+++ b/tests/core_tests/chaingen.cpp
@@ -407,9 +407,9 @@ void test_generator::fill_nonce(cryptonote::block& blk, const difficulty_type& d
}
blk.nonce = 0;
- while (!miner::find_nonce_for_given_block([blockchain](const cryptonote::block &b, uint64_t height, unsigned int threads, crypto::hash &hash){
- return cryptonote::get_block_longhash(blockchain, b, hash, height, threads);
- }, blk, diffic, height)) {
+ while (!miner::find_nonce_for_given_block([blockchain](const cryptonote::block &b, uint64_t height, const crypto::hash *seed_hash, unsigned int threads, crypto::hash &hash){
+ return cryptonote::get_block_longhash(blockchain, b, hash, height, seed_hash, threads);
+ }, blk, diffic, height, NULL)) {
blk.timestamp++;
}
}