diff options
author | Riccardo Spagni <ric@spagni.net> | 2019-09-25 17:52:15 -0400 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2019-09-25 17:52:16 -0400 |
commit | b8643752c122a32096733fb8686d8f2eafcf6ff8 (patch) | |
tree | 6a735c25f25996dc2f31f02708d45a001f1315fc /tests/core_tests/chaingen.cpp | |
parent | Merge pull request #5930 (diff) | |
parent | RandomX integration (diff) | |
download | monero-b8643752c122a32096733fb8686d8f2eafcf6ff8.tar.xz |
Merge pull request #5549
81c2ad6d RandomX integration (Howard Chu)
Diffstat (limited to 'tests/core_tests/chaingen.cpp')
-rw-r--r-- | tests/core_tests/chaingen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/core_tests/chaingen.cpp b/tests/core_tests/chaingen.cpp index 8dde1f475..3f2984288 100644 --- a/tests/core_tests/chaingen.cpp +++ b/tests/core_tests/chaingen.cpp @@ -186,7 +186,7 @@ bool test_generator::construct_block(cryptonote::block& blk, uint64_t height, co // Nonce search... blk.nonce = 0; - while (!miner::find_nonce_for_given_block(blk, get_test_difficulty(hf_ver), height)) + while (!miner::find_nonce_for_given_block(NULL, blk, get_test_difficulty(hf_ver), height)) blk.timestamp++; add_block(blk, txs_weight, block_weights, already_generated_coins, hf_ver ? hf_ver.get() : 1); @@ -797,7 +797,7 @@ void fill_tx_sources_and_destinations(const std::vector<test_event_entry>& event void fill_nonce(cryptonote::block& blk, const difficulty_type& diffic, uint64_t height) { blk.nonce = 0; - while (!miner::find_nonce_for_given_block(blk, diffic, height)) + while (!miner::find_nonce_for_given_block(NULL, blk, diffic, height)) blk.timestamp++; } |