mirror of
https://github.com/monero-project/monero.git
synced 2026-01-23 12:54:29 +01:00
wallet2_api: do not copy the whole pending tx when iterating
This commit is contained in:
@@ -128,7 +128,7 @@ uint64_t PendingTransactionImpl::dust() const
|
|||||||
uint64_t PendingTransactionImpl::fee() const
|
uint64_t PendingTransactionImpl::fee() const
|
||||||
{
|
{
|
||||||
uint64_t result = 0;
|
uint64_t result = 0;
|
||||||
for (const auto ptx : m_pending_tx) {
|
for (const auto &ptx : m_pending_tx) {
|
||||||
result += ptx.fee;
|
result += ptx.fee;
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Reference in New Issue
Block a user