diff options
author | Riccardo Spagni <ric@spagni.net> | 2020-09-06 15:49:36 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2020-09-06 15:49:37 +0200 |
commit | aefa7740c38754b31a4f5748569ac1af59034667 (patch) | |
tree | ffb822e7c7e0929d70b706f26f29f94caec7aecd /tests/core_tests | |
parent | Merge pull request #6802 (diff) | |
parent | functional_tests: add a large (many randomx epochs) p2p reorg test (diff) | |
download | monero-aefa7740c38754b31a4f5748569ac1af59034667.tar.xz |
Merge pull request #6111
d20ff4f64 functional_tests: add a large (many randomx epochs) p2p reorg test (moneromooo-monero)
6a0b3b1f8 functional_tests: add randomx tests (moneromooo-monero)
9d42649d5 core: fix mining from a block that's not the current top (moneromooo-monero)
Diffstat (limited to 'tests/core_tests')
-rw-r--r-- | tests/core_tests/chaingen.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/core_tests/chaingen.cpp b/tests/core_tests/chaingen.cpp index e8f070214..d1aeef488 100644 --- a/tests/core_tests/chaingen.cpp +++ b/tests/core_tests/chaingen.cpp @@ -409,9 +409,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++; } } |