diff options
| author | Riccardo Spagni <ric@spagni.net> | 2018-05-21 20:55:02 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2018-05-21 20:55:02 +0200 |
| commit | 2a1e23e0873d859b9359aa17cff591b86993bd8f (patch) | |
| tree | 0236964fb6c1b7116e81ce9686e661d264a620d6 /src/cryptonote_core/cryptonote_core.cpp | |
| parent | 2f5506daf874ddfc3cfdf9de94c65daef924d29a (diff) | |
| parent | 5f8ffca34d87e46b7a44964e61733bfe5a85c028 (diff) | |
| download | monzero-core-2a1e23e0873d859b9359aa17cff591b86993bd8f.tar.gz monzero-core-2a1e23e0873d859b9359aa17cff591b86993bd8f.tar.xz monzero-core-2a1e23e0873d859b9359aa17cff591b86993bd8f.zip | |
Merge pull request #3814
5f8ffca3 speed up get_output_distribution (and precalc common case) (moneromooo-monero)
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 |
