aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/blockchain.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-08-13 16:18:32 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-09-14 10:51:45 +0000
commitbe001326d1baac0b00d79d2d0a7f42662dc1be1f (patch)
tree30251dca497acdbf0a51ddfdbe4be7ab5d39e50c /src/cryptonote_core/blockchain.h
parentMerge pull request #4178 (diff)
downloadmonero-be001326d1baac0b00d79d2d0a7f42662dc1be1f.tar.xz
remove obsolete daemon selection of fake outs and old tx construction
Diffstat (limited to 'src/cryptonote_core/blockchain.h')
-rw-r--r--src/cryptonote_core/blockchain.h61
1 files changed, 0 insertions, 61 deletions
diff --git a/src/cryptonote_core/blockchain.h b/src/cryptonote_core/blockchain.h
index 7e2ba7a39..50ceccd0f 100644
--- a/src/cryptonote_core/blockchain.h
+++ b/src/cryptonote_core/blockchain.h
@@ -447,16 +447,6 @@ namespace cryptonote
uint64_t get_num_mature_outputs(uint64_t amount) const;
/**
- * @brief get random outputs (indices) for an amount
- *
- * @param amount the amount
- * @param count the number of random outputs to choose
- *
- * @return the outputs' amount-global indices
- */
- std::vector<uint64_t> get_random_outputs(uint64_t amount, uint64_t count) const;
-
- /**
* @brief get the public key for an output
*
* @param amount the output amount
@@ -467,22 +457,6 @@ namespace cryptonote
crypto::public_key get_output_key(uint64_t amount, uint64_t global_index) const;
/**
- * @brief gets random outputs to mix with
- *
- * This function takes an RPC request for outputs to mix with
- * and creates an RPC response with the resultant output indices.
- *
- * Outputs to mix with are randomly selected from the utxo set
- * for each output amount in the request.
- *
- * @param req the output amounts and number of mixins to select
- * @param res return-by-reference the resultant output indices
- *
- * @return true
- */
- 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) const;
-
- /**
* @brief gets specific outputs to mix with
*
* This function takes an RPC request for outputs to mix with
@@ -509,23 +483,6 @@ namespace cryptonote
void get_output_key_mask_unlocked(const uint64_t& amount, const uint64_t& index, crypto::public_key& key, rct::key& mask, bool& unlocked) const;
/**
- * @brief gets random ringct outputs to mix with
- *
- * This function takes an RPC request for outputs to mix with
- * and creates an RPC response with the resultant output indices
- * and the matching keys.
- *
- * Outputs to mix with are randomly selected from the utxo set
- * for each output amount in the request.
- *
- * @param req the output amounts and number of mixins to select
- * @param res return-by-reference the resultant output indices
- *
- * @return true
- */
- bool get_random_rct_outs(const COMMAND_RPC_GET_RANDOM_RCT_OUTPUTS::request& req, COMMAND_RPC_GET_RANDOM_RCT_OUTPUTS::response& res) const;
-
- /**
* @brief gets per block distribution of outputs of a given amount
*
* @param amount the amount to get a ditribution for
@@ -1272,24 +1229,6 @@ namespace cryptonote
void get_last_n_blocks_weights(std::vector<size_t>& weights, size_t count) const;
/**
- * @brief adds the given output to the requested set of random outputs
- *
- * @param result_outs return-by-reference the set the output is to be added to
- * @param amount the output amount
- * @param i the output index (indexed to amount)
- */
- void add_out_to_get_random_outs(COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS::outs_for_amount& result_outs, uint64_t amount, size_t i) const;
-
- /**
- * @brief adds the given output to the requested set of random ringct outputs
- *
- * @param outs return-by-reference the set the output is to be added to
- * @param amount the output amount (0 for rct inputs)
- * @param i the rct output index
- */
- void add_out_to_get_rct_random_outs(std::list<COMMAND_RPC_GET_RANDOM_RCT_OUTPUTS::out_entry>& outs, uint64_t amount, size_t i) const;
-
- /**
* @brief checks if a transaction is unlocked (its outputs spendable)
*
* This function checks to see if a transaction is unlocked.