mirror of
https://github.com/monero-project/monero.git
synced 2025-12-22 15:16:40 -08:00
use const refs in for loops for non tiny types
This commit is contained in:
@@ -459,7 +459,7 @@ int import_from_file(cryptonote::core& core, const std::string& import_file_path
|
||||
|
||||
// tx number 1: coinbase tx
|
||||
// tx number 2 onwards: archived_txs
|
||||
for (transaction tx : archived_txs)
|
||||
for (const transaction &tx : archived_txs)
|
||||
{
|
||||
// add blocks with verification.
|
||||
// for Blockchain and blockchain_storage add_new_block().
|
||||
|
||||
Reference in New Issue
Block a user