wallet2_api: do not copy the whole pending tx when iterating

pull/95/head
moneromooo-monero 8 years ago
parent d51f1af75f
commit eb194925ec
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

@ -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;

Loading…
Cancel
Save