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

Prevent DoS on initial sync #15

Open
mappum opened this issue Jun 27, 2018 · 0 comments
Open

Prevent DoS on initial sync #15

mappum opened this issue Jun 27, 2018 · 0 comments

Comments

@mappum
Copy link
Owner

mappum commented Jun 27, 2018

When beginning sync, we currently ask a peer for the current tip height, then follow the chain up to that point. This can be DoSed if a malicious peer sends a fake height that is too high, since our client never thinks it has finished syncing.

We can fix this by trusting the header time is accurate to check if we are synced close enough to the current time. Can also probably skip the initial height query and just binary search upwards (or use a time heuristic to guess the tip height).

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

No branches or pull requests

1 participant