diff --git a/src/cryptonote_core/tx_pool.h b/src/cryptonote_core/tx_pool.h index 649af41a3..72eff378d 100644 --- a/src/cryptonote_core/tx_pool.h +++ b/src/cryptonote_core/tx_pool.h @@ -36,9 +36,6 @@ namespace cryptonote bool take_tx(const crypto::hash &id, transaction &tx, size_t& blob_size, uint64_t& fee); bool have_tx(const crypto::hash &id); - bool have_tx_keyimg_as_spent(const crypto::key_image& key_im); - bool have_tx_keyimges_as_spent(const transaction& tx); - bool on_blockchain_inc(uint64_t new_block_height, const crypto::hash& top_block_id); bool on_blockchain_dec(uint64_t new_block_height, const crypto::hash& top_block_id); void on_idle(); @@ -53,9 +50,6 @@ namespace cryptonote bool get_transactions(std::list& txs); bool get_transaction(const crypto::hash& h, transaction& tx); size_t get_transactions_count(); - bool remove_transaction_keyimages(const transaction& tx); - bool have_key_images(const std::unordered_set& kic, const transaction& tx); - bool append_key_images(std::unordered_set& kic, const transaction& tx); std::string print_pool(bool short_format); /*bool flush_pool(const std::strig& folder); @@ -89,6 +83,12 @@ namespace cryptonote private: bool remove_stuck_transactions(); + bool have_tx_keyimg_as_spent(const crypto::key_image& key_im); + bool have_tx_keyimges_as_spent(const transaction& tx); + bool remove_transaction_keyimages(const transaction& tx); + bool have_key_images(const std::unordered_set& kic, const transaction& tx); + bool append_key_images(std::unordered_set& kic, const transaction& tx); + bool is_transaction_ready_to_go(tx_details& txd); typedef std::unordered_map transactions_container; typedef std::unordered_map > key_images_container;