aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core
diff options
context:
space:
mode:
authorZachary Michaels <mikezackles@gmail.com>2014-06-27 18:06:21 -0400
committerZachary Michaels <mikezackles@gmail.com>2014-07-01 14:57:26 -0400
commitb3092d4e00e9667ee8fa3614fd9d68252068c35c (patch)
tree88dea1f810da9165990d57e58c8f2a029f7a3ac4 /src/cryptonote_core
parentImproved (fixed?) serialization for vec<uint32_t> (diff)
downloadmonero-b3092d4e00e9667ee8fa3614fd9d68252068c35c.tar.xz
Comment unused functions in cryptonote_core
Diffstat (limited to 'src/cryptonote_core')
-rw-r--r--src/cryptonote_core/cryptonote_core.cpp23
-rw-r--r--src/cryptonote_core/cryptonote_core.h6
2 files changed, 14 insertions, 15 deletions
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp
index 2609fc13e..be4917703 100644
--- a/src/cryptonote_core/cryptonote_core.cpp
+++ b/src/cryptonote_core/cryptonote_core.cpp
@@ -284,10 +284,10 @@ namespace cryptonote
return m_blockchain_storage.get_total_transactions();
}
//-----------------------------------------------------------------------------------------------
- bool core::get_outs(uint64_t amount, std::list<crypto::public_key>& pkeys)
- {
- return m_blockchain_storage.get_outs(amount, pkeys);
- }
+ //bool core::get_outs(uint64_t amount, std::list<crypto::public_key>& pkeys)
+ //{
+ // return m_blockchain_storage.get_outs(amount, pkeys);
+ //}
//-----------------------------------------------------------------------------------------------
bool core::add_new_tx(const transaction& tx, const crypto::hash& tx_hash, const crypto::hash& tx_prefix_hash, size_t blob_size, tx_verification_context& tvc, bool keeped_by_block)
{
@@ -398,10 +398,10 @@ namespace cryptonote
{
m_miner.on_synchronized();
}
- bool core::get_backward_blocks_sizes(uint64_t from_height, std::vector<size_t>& sizes, size_t count)
- {
- return m_blockchain_storage.get_backward_blocks_sizes(from_height, sizes, count);
- }
+ //bool core::get_backward_blocks_sizes(uint64_t from_height, std::vector<size_t>& sizes, size_t count)
+ //{
+ // return m_blockchain_storage.get_backward_blocks_sizes(from_height, sizes, count);
+ //}
//-----------------------------------------------------------------------------------------------
bool core::add_new_block(const block& b, block_verification_context& bvc)
{
@@ -418,7 +418,6 @@ namespace cryptonote
return false;
}
-
block b = AUTO_VAL_INIT(b);
if(!parse_and_validate_block_from_blob(block_blob, b))
{
@@ -493,9 +492,9 @@ namespace cryptonote
return m_blockchain_storage.get_block_by_hash(h, blk);
}
//-----------------------------------------------------------------------------------------------
- void core::get_all_known_block_ids(std::list<crypto::hash> &main, std::list<crypto::hash> &alt, std::list<crypto::hash> &invalid) {
- m_blockchain_storage.get_all_known_block_ids(main, alt, invalid);
- }
+ //void core::get_all_known_block_ids(std::list<crypto::hash> &main, std::list<crypto::hash> &alt, std::list<crypto::hash> &invalid) {
+ // m_blockchain_storage.get_all_known_block_ids(main, alt, invalid);
+ //}
//-----------------------------------------------------------------------------------------------
std::string core::print_pool(bool short_format)
{
diff --git a/src/cryptonote_core/cryptonote_core.h b/src/cryptonote_core/cryptonote_core.h
index 1f1b6eec6..ee19ca9e1 100644
--- a/src/cryptonote_core/cryptonote_core.h
+++ b/src/cryptonote_core/cryptonote_core.h
@@ -60,7 +60,7 @@ namespace cryptonote
bool get_transactions(const std::vector<crypto::hash>& txs_ids, std::list<transaction>& txs, std::list<crypto::hash>& missed_txs);
bool get_transaction(const crypto::hash &h, transaction &tx);
bool get_block_by_hash(const crypto::hash &h, block &blk);
- void get_all_known_block_ids(std::list<crypto::hash> &main, std::list<crypto::hash> &alt, std::list<crypto::hash> &invalid);
+ //void get_all_known_block_ids(std::list<crypto::hash> &main, std::list<crypto::hash> &alt, std::list<crypto::hash> &invalid);
bool get_alternative_blocks(std::list<block>& blocks);
size_t get_alternative_blocks_count();
@@ -71,13 +71,13 @@ namespace cryptonote
bool get_pool_transactions(std::list<transaction>& txs);
size_t get_pool_transactions_count();
size_t get_blockchain_total_transactions();
- bool get_outs(uint64_t amount, std::list<crypto::public_key>& pkeys);
+ //bool get_outs(uint64_t amount, std::list<crypto::public_key>& pkeys);
bool have_block(const crypto::hash& id);
bool get_short_chain_history(std::list<crypto::hash>& ids);
bool find_blockchain_supplement(const std::list<crypto::hash>& qblock_ids, NOTIFY_RESPONSE_CHAIN_ENTRY::request& resp);
bool find_blockchain_supplement(const std::list<crypto::hash>& qblock_ids, std::list<std::pair<block, std::list<transaction> > >& blocks, uint64_t& total_height, uint64_t& start_height, size_t max_count);
bool get_stat_info(core_stat_info& st_inf);
- bool get_backward_blocks_sizes(uint64_t from_height, std::vector<size_t>& sizes, size_t count);
+ //bool get_backward_blocks_sizes(uint64_t from_height, std::vector<size_t>& sizes, size_t count);
bool get_tx_outputs_gindexs(const crypto::hash& tx_id, std::vector<uint64_t>& indexs);
crypto::hash get_tail_id();
bool get_random_outs_for_amounts(const COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS::request& req, COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS::response& res);