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

Wire up error for maximum garbage in handshake #64

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

nyonson
Copy link
Collaborator

@nyonson nyonson commented Sep 17, 2024

This might have been accidentally dropped up at some point, so (re-)wiring up the error for when too much garbage is encountered in the initial handshake before the garbage terminator. There is a maximum of 4095 bytes of garbage, plus another 16 for the terminator, so a total of 4111 bytes to receive before the protocol is broken.

@rustaceanrob
Copy link
Collaborator

Ack a1ee64f

@rustaceanrob rustaceanrob merged commit 559cadf into rust-bitcoin:main Sep 17, 2024
7 checks passed
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.

2 participants