mirror of
https://github.com/monero-project/monero.git
synced 2024-12-30 15:06:14 -05:00
tx_pool: make spent return-by-reference as intended
This commit is contained in:
parent
b60cf6a938
commit
ec14abdbe8
@ -908,7 +908,7 @@ namespace cryptonote
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
//---------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------
|
||||||
bool tx_memory_pool::check_for_key_images(const std::vector<crypto::key_image>& key_images, std::vector<bool> spent) const
|
bool tx_memory_pool::check_for_key_images(const std::vector<crypto::key_image>& key_images, std::vector<bool>& spent) const
|
||||||
{
|
{
|
||||||
CRITICAL_REGION_LOCAL(m_transactions_lock);
|
CRITICAL_REGION_LOCAL(m_transactions_lock);
|
||||||
CRITICAL_REGION_LOCAL1(m_blockchain);
|
CRITICAL_REGION_LOCAL1(m_blockchain);
|
||||||
|
@ -300,7 +300,7 @@ namespace cryptonote
|
|||||||
*
|
*
|
||||||
* @return true
|
* @return true
|
||||||
*/
|
*/
|
||||||
bool check_for_key_images(const std::vector<crypto::key_image>& key_images, std::vector<bool> spent) const;
|
bool check_for_key_images(const std::vector<crypto::key_image>& key_images, std::vector<bool>& spent) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief get a specific transaction from the pool
|
* @brief get a specific transaction from the pool
|
||||||
|
Loading…
Reference in New Issue
Block a user