speed up get_output_distribution (and precalc common case)

This commit is contained in:
moneromooo-monero
2018-05-16 22:41:50 +01:00
parent 2f5506daf8
commit 5f8ffca34d
10 changed files with 183 additions and 23 deletions
+1 -1
View File
@@ -576,7 +576,7 @@ namespace cryptonote
*
* @brief get per block distribution of outputs of a given amount
*/
bool get_output_distribution(uint64_t amount, uint64_t from_height, uint64_t &start_height, std::vector<uint64_t> &distribution, uint64_t &base) const;
bool get_output_distribution(uint64_t amount, uint64_t from_height, uint64_t to_height, uint64_t &start_height, std::vector<uint64_t> &distribution, uint64_t &base) const;
/**
* @copydoc miner::pause