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

block_queue: faster check whether a block was requested #4160

Merged
merged 1 commit into from
Sep 4, 2018

Conversation

moneromooo-monero
Copy link
Collaborator

No description provided.

Copy link
Contributor

@coneiric coneiric left a comment

Choose a reason for hiding this comment

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

Changes look good to me, just one clarifying question about erase_block and set_span_hashes.

s.hashes = std::move(hashes);
for (const crypto::hash &h: s.hashes)
requested_hashes.insert(h);
Copy link
Contributor

@coneiric coneiric Aug 26, 2018

Choose a reason for hiding this comment

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

Is this inserting hash references after they are invalidated in erase_block?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Nice catch, but hashes is not a reference (parameter to the function).

@luigi1111 luigi1111 merged commit 704b60c into monero-project:master Sep 4, 2018
luigi1111 added a commit that referenced this pull request Sep 4, 2018
704b60c block_queue: faster check whether a block was requested (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