aboutsummaryrefslogtreecommitdiff
path: root/tests/core_tests
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-02-02 18:45:12 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-02-02 19:36:09 +0000
commit2e3e90acbe62272901046f754b62ee7ec0d516d9 (patch)
treec1917be3b1d3f7f7bab2f62218f908faa1f149d8 /tests/core_tests
parentblockchain: sanity check number of precomputed hash of hash blocks (diff)
downloadmonero-2e3e90acbe62272901046f754b62ee7ec0d516d9.tar.xz
pass large parameters by const ref, not value
Coverity 136394 136397 136409 136526 136529 136533 175302
Diffstat (limited to 'tests/core_tests')
-rw-r--r--tests/core_tests/block_validation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/core_tests/block_validation.cpp b/tests/core_tests/block_validation.cpp
index b9818d2c5..598cd4098 100644
--- a/tests/core_tests/block_validation.cpp
+++ b/tests/core_tests/block_validation.cpp
@@ -38,7 +38,7 @@ namespace
{
bool lift_up_difficulty(std::vector<test_event_entry>& events, std::vector<uint64_t>& timestamps,
std::vector<difficulty_type>& cummulative_difficulties, test_generator& generator,
- size_t new_block_count, const block blk_last, const account_base& miner_account)
+ size_t new_block_count, const block &blk_last, const account_base& miner_account)
{
difficulty_type commulative_diffic = cummulative_difficulties.empty() ? 0 : cummulative_difficulties.back();
block blk_prev = blk_last;