diff options
author | luigi1111 <luigi1111w@gmail.com> | 2019-10-16 13:51:34 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2019-10-16 13:51:34 -0500 |
commit | 461a25e1b5d41fe65c46f27426fd883efd664574 (patch) | |
tree | b9f44829b73d7f3d7758f43570823ff2ae886ac3 /src/cryptonote_core | |
parent | Merge pull request #5959 (diff) | |
parent | tx_pool: make spent return-by-reference as intended (diff) | |
download | monero-461a25e1b5d41fe65c46f27426fd883efd664574.tar.xz |
Merge pull request #5962
ec14abd tx_pool: make spent return-by-reference as intended (stoffu)
Diffstat (limited to 'src/cryptonote_core')
-rw-r--r-- | src/cryptonote_core/tx_pool.cpp | 2 | ||||
-rw-r--r-- | src/cryptonote_core/tx_pool.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptonote_core/tx_pool.cpp b/src/cryptonote_core/tx_pool.cpp index 0b7e5c199..3a6a3833d 100644 --- a/src/cryptonote_core/tx_pool.cpp +++ b/src/cryptonote_core/tx_pool.cpp @@ -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); diff --git a/src/cryptonote_core/tx_pool.h b/src/cryptonote_core/tx_pool.h index 895014d17..99182cd0d 100644 --- a/src/cryptonote_core/tx_pool.h +++ b/src/cryptonote_core/tx_pool.h @@ -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 |