don't make a copy of m_non_base_coins

This commit is contained in:
glozow committed 2025-07-14 14:48:26 -04:00
1 parent 98ba2b1db2
commit d8140f5f05
1 file changed
+1 -1
+1 -1
View File
@@ -940,7 +940,7 @@ public:
* m_temp_added and cannot be flushed to the back end. Only used for package validation. */
void PackageAddTransaction(const CTransactionRef& tx);
/** Get all coins in m_non_base_coins. */
std::unordered_set<COutPoint, SaltedOutpointHasher> GetNonBaseCoins() const { return m_non_base_coins; }
const std::unordered_set<COutPoint, SaltedOutpointHasher>& GetNonBaseCoins() const { return m_non_base_coins; }
/** Clear m_temp_added and m_non_base_coins. */
void Reset();
};