mirror of
https://github.com/monero-project/monero.git
synced 2025-05-06 12:15:05 -04:00
pass large parameters by const ref, not value
Coverity 136394 136397 136409 136526 136529 136533 175302
This commit is contained in:
parent
61defd89e3
commit
2e3e90acbe
7 changed files with 14 additions and 14 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue