Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

speed up get_output_distribution (and precalc common case) #3814

Merged
merged 1 commit into from
May 21, 2018

Conversation

moneromooo-monero
Copy link
Collaborator

No description provided.

@@ -1496,6 +1496,8 @@ class BlockchainDB
*/
virtual std::map<uint64_t, std::tuple<uint64_t, uint64_t, uint64_t>> get_output_histogram(const std::vector<uint64_t> &amounts, bool unlocked, uint64_t recent_cutoff, uint64_t min_count) const = 0;

virtual bool get_output_distribution(uint64_t amount, uint64_t from_height, uint64_t to_height, std::vector<uint64_t> &distribution, uint64_t &base) const = 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The corresponding boilerplate is needed in unit_tests/hardfork.cpp.

@moneromooo-monero moneromooo-monero force-pushed the cgod branch 2 times, most recently from 0c105c4 to 8cf618d Compare May 19, 2018 12:38
Copy link
Contributor

@fluffypony fluffypony left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed

Copy link
Contributor

@fluffypony fluffypony left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed

@fluffypony fluffypony merged commit 5f8ffca into monero-project:master May 21, 2018
fluffypony added a commit that referenced this pull request May 21, 2018
5f8ffca speed up get_output_distribution (and precalc common case) (moneromooo-monero)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants