diff options
author | Riccardo Spagni <ric@spagni.net> | 2016-11-08 22:48:04 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2016-11-08 22:48:04 +0200 |
commit | c57ce06a97aada393c0457cede4c65aca1881816 (patch) | |
tree | dab80e543af731f591ff10895fb8968850de8c49 /src | |
parent | Merge pull request #1298 (diff) | |
parent | wallet2_api: do not copy the whole pending tx when iterating (diff) | |
download | monero-c57ce06a97aada393c0457cede4c65aca1881816.tar.xz |
Merge pull request #1300
eb19492 wallet2_api: do not copy the whole pending tx when iterating (moneromooo-monero)
Diffstat (limited to 'src')
-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 e1a5e7674..80fb0b9a4 100644 --- a/src/wallet/api/pending_transaction.cpp +++ b/src/wallet/api/pending_transaction.cpp @@ -136,7 +136,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; |