Skip to content

Commit d8140f5

Browse files
committed
don't make a copy of m_non_base_coins
1 parent 98ba2b1 commit d8140f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/txmempool.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ class CCoinsViewMemPool : public CCoinsViewBacked
940940
* m_temp_added and cannot be flushed to the back end. Only used for package validation. */
941941
void PackageAddTransaction(const CTransactionRef& tx);
942942
/** Get all coins in m_non_base_coins. */
943-
std::unordered_set<COutPoint, SaltedOutpointHasher> GetNonBaseCoins() const { return m_non_base_coins; }
943+
const std::unordered_set<COutPoint, SaltedOutpointHasher>& GetNonBaseCoins() const { return m_non_base_coins; }
944944
/** Clear m_temp_added and m_non_base_coins. */
945945
void Reset();
946946
};

0 commit comments

Comments
 (0)