mirror of
https://github.com/monero-project/monero.git
synced 2025-05-02 08:56:09 -04:00
Merge pull request #7355
bd12984
Remove copies from foreach loops (thanks to Clang) (Lee Clagett)1572df9
Removing unused namespace alias (Lee Clagett)
This commit is contained in:
commit
6556c33f13
9 changed files with 17 additions and 19 deletions
|
@ -390,7 +390,7 @@ bool txpool_double_spend_base::check_changed(cryptonote::core& c, const size_t e
|
|||
}
|
||||
}
|
||||
|
||||
for (const std::pair<crypto::hash, uint64_t>& hash : m_all_hashes)
|
||||
for (const std::pair<const crypto::hash, uint64_t>& hash : m_all_hashes)
|
||||
{
|
||||
cryptonote::blobdata tx_blob{};
|
||||
if (!c.get_pool_transaction(hash.first, tx_blob, cryptonote::relay_category::all))
|
||||
|
@ -408,7 +408,7 @@ bool txpool_double_spend_base::check_changed(cryptonote::core& c, const size_t e
|
|||
for (const crypto::hash& hash : m_no_relay_hashes)
|
||||
difference.erase(hash);
|
||||
|
||||
for (const std::pair<crypto::hash, uint64_t>& hash : difference)
|
||||
for (const std::pair<const crypto::hash, uint64_t>& hash : difference)
|
||||
{
|
||||
if (c.pool_has_tx(hash.first))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue