diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-05-16 22:41:50 +0100 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-05-21 19:51:58 +0100 |
| commit | 5f8ffca34d87e46b7a44964e61733bfe5a85c028 (patch) | |
| tree | 0236964fb6c1b7116e81ce9686e661d264a620d6 /src/cryptonote_core/cryptonote_core.cpp | |
| parent | 2f5506daf874ddfc3cfdf9de94c65daef924d29a (diff) | |
| download | monzero-core-5f8ffca34d87e46b7a44964e61733bfe5a85c028.tar.gz monzero-core-5f8ffca34d87e46b7a44964e61733bfe5a85c028.tar.xz monzero-core-5f8ffca34d87e46b7a44964e61733bfe5a85c028.zip | |
speed up get_output_distribution (and precalc common case)
Diffstat (limited to 'src/cryptonote_core/cryptonote_core.cpp')
| -rw-r--r-- | src/cryptonote_core/cryptonote_core.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp index ce75f74d8..01cd56a11 100644 --- a/src/cryptonote_core/cryptonote_core.cpp +++ b/src/cryptonote_core/cryptonote_core.cpp @@ -1073,9 +1073,9 @@ namespace cryptonote return m_blockchain_storage.get_random_rct_outs(req, res); } //----------------------------------------------------------------------------------------------- - bool core::get_output_distribution(uint64_t amount, uint64_t from_height, uint64_t &start_height, std::vector<uint64_t> &distribution, uint64_t &base) const + bool core::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 { - return m_blockchain_storage.get_output_distribution(amount, from_height, start_height, distribution, base); + return m_blockchain_storage.get_output_distribution(amount, from_height, to_height, start_height, distribution, base); } //----------------------------------------------------------------------------------------------- bool core::get_tx_outputs_gindexs(const crypto::hash& tx_id, std::vector<uint64_t>& indexs) const |
