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

node.cpp: Check the attacker/buggy client before updating items ids #1007

Merged
merged 1 commit into from
May 31, 2018
Merged

node.cpp: Check the attacker/buggy client before updating items ids #1007

merged 1 commit into from
May 31, 2018

Conversation

RichardWeiYang
Copy link
Contributor

The peer is an attacker or buggy, which means the item_hashes_received is
not correct.

Move the check before updating items ids to save some time in this case.

The peer is an attacker or buggy, which means the item_hashes_received is
not correct.

Move the check before updating items ids to save some time in this case.
@oxarbitrage
Copy link
Member

replaces #990

Copy link
Member

@oxarbitrage oxarbitrage left a comment

Choose a reason for hiding this comment

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

the move makes sense to me too. thank you for making it @RichardWeiYang !

@RichardWeiYang
Copy link
Contributor Author

@oxarbitrage

You are welcome :-) A lot to learn from you all.

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