Merge pull request #5962

ec14abd tx_pool: make spent return-by-reference as intended (stoffu)
release-v0.7.1.0
luigi1111 5 years ago
commit 461a25e1b5
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

@ -911,7 +911,7 @@ namespace cryptonote
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_LOCAL1(m_blockchain);

@ -301,7 +301,7 @@ namespace cryptonote
*
* @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

Loading…
Cancel
Save