diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-11-06 10:36:08 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-11-06 10:36:08 +0000 |
| commit | eb194925eca95b35a79b6260bc1bfb27c30f90d6 (patch) | |
| tree | 9166e4129db381562d2fe16e93653b429fe86db4 /src/wallet/api | |
| parent | d51f1af75f782495a59e8af511f32aeadd7cd94e (diff) | |
| download | monzero-core-eb194925eca95b35a79b6260bc1bfb27c30f90d6.tar.gz monzero-core-eb194925eca95b35a79b6260bc1bfb27c30f90d6.tar.xz monzero-core-eb194925eca95b35a79b6260bc1bfb27c30f90d6.zip | |
wallet2_api: do not copy the whole pending tx when iterating
Diffstat (limited to 'src/wallet/api')
| -rw-r--r-- | src/wallet/api/pending_transaction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/api/pending_transaction.cpp b/src/wallet/api/pending_transaction.cpp index 26ce9fc7e..f377e80b6 100644 --- a/src/wallet/api/pending_transaction.cpp +++ b/src/wallet/api/pending_transaction.cpp @@ -128,7 +128,7 @@ uint64_t PendingTransactionImpl::dust() const uint64_t PendingTransactionImpl::fee() const { uint64_t result = 0; - for (const auto ptx : m_pending_tx) { + for (const auto &ptx : m_pending_tx) { result += ptx.fee; } return result; |
