Make some tx_pool methods private

This commit is contained in:
Zachary Michaels 2014-07-17 10:27:37 -04:00
parent a016499a0e
commit 85a04cb168
1 changed files with 6 additions and 6 deletions

View File

@ -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<transaction>& 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<crypto::key_image>& kic, const transaction& tx);
bool append_key_images(std::unordered_set<crypto::key_image>& 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<crypto::key_image>& kic, const transaction& tx);
bool append_key_images(std::unordered_set<crypto::key_image>& kic, const transaction& tx);
bool is_transaction_ready_to_go(tx_details& txd);
typedef std::unordered_map<crypto::hash, tx_details > transactions_container;
typedef std::unordered_map<crypto::key_image, std::unordered_set<crypto::hash> > key_images_container;