mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-12-24 14:17:46 +00:00
wallet2_api: do not copy the whole pending tx when iterating
This commit is contained in:
parent
d51f1af75f
commit
eb194925ec
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue