diff options
author | Lee Clagett <code@leeclagett.com> | 2021-01-28 23:42:40 -0500 |
---|---|---|
committer | Lee Clagett <code@leeclagett.com> | 2021-01-28 23:42:40 -0500 |
commit | bd129849f0b634bddf64a195097b15d585e8f2bd (patch) | |
tree | a8aba2ce30da01d1310b468b8cc63dac2e044cf6 /src/blockchain_db | |
parent | Removing unused namespace alias (diff) | |
download | monero-bd129849f0b634bddf64a195097b15d585e8f2bd.tar.xz |
Remove copies from foreach loops (thanks to Clang)
Diffstat (limited to 'src/blockchain_db')
-rw-r--r-- | src/blockchain_db/blockchain_db.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blockchain_db/blockchain_db.cpp b/src/blockchain_db/blockchain_db.cpp index a9a7d035f..5e12fa8ec 100644 --- a/src/blockchain_db/blockchain_db.cpp +++ b/src/blockchain_db/blockchain_db.cpp @@ -287,7 +287,7 @@ uint64_t BlockchainDB::add_block( const std::pair<block, blobdata>& blck num_rct_outs += blk.miner_tx.vout.size(); int tx_i = 0; crypto::hash tx_hash = crypto::null_hash; - for (const std::pair<transaction, blobdata_ref>& tx : txs) + for (const std::pair<transaction, blobdata>& tx : txs) { tx_hash = blk.tx_hashes[tx_i]; add_transaction(blk_hash, tx, &tx_hash); |