diff options
author | Alexander Blair <snipa@jagtech.io> | 2020-08-16 12:45:37 -0700 |
---|---|---|
committer | Alexander Blair <snipa@jagtech.io> | 2020-08-16 12:45:37 -0700 |
commit | bc484947313e1ce87d0c1db302c24f1fe733fc18 (patch) | |
tree | f539d4623a6b368a88462aaa01bd7e82d8d897be /src/cryptonote_core/blockchain.cpp | |
parent | Merge pull request #6634 (diff) | |
parent | avoid a couple needless copies (diff) | |
download | monero-bc484947313e1ce87d0c1db302c24f1fe733fc18.tar.xz |
Merge pull request #6661
267ce5b71 avoid a couple needless copies (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_core/blockchain.cpp')
-rw-r--r-- | src/cryptonote_core/blockchain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index b0726981c..ea2cd6aeb 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -1301,7 +1301,7 @@ difficulty_type Blockchain::get_next_difficulty_for_alternative_chain(const std: size_t count = 0; size_t max_i = timestamps.size()-1; // get difficulties and timestamps from most recent blocks in alt chain - for (const auto bei: boost::adaptors::reverse(alt_chain)) + for (const auto &bei: boost::adaptors::reverse(alt_chain)) { timestamps[max_i - count] = bei.bl.timestamp; cumulative_difficulties[max_i - count] = bei.cumulative_difficulty; |