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

remove unusued rlpx features, tighten hello exchange and some error h… #759

Merged
merged 6 commits into from
Nov 5, 2024

Conversation

arnetheduck
Copy link
Member

…andling

  • disconnect peers that send non-hello messages during initial hello step
  • fix devp2p protocol version - 4 because we don't implement snappy (yet) - this is cosmetic since this particular version field is not actually being used
  • fix ack message length checking
  • move RLPx transport code to separate module, annotate with asyncraises
  • increase max RLPx message size to 16mb, per EIP-706
  • make sure both accept/connect timeout after 10s
  • aim to log every connection attempt once at debug level
  • make capability-id/context-id check more accurate
  • disallow random messages before hello

…andling

* disconnect peers that send non-hello messages during initial hello
step
* fix devp2p protocol version - 4 because we don't implement snappy
(yet) - this is cosmetic since this particular version field is not
actually being used
* fix ack message length checking
* move RLPx transport code to separate module, annotate with asyncraises
* increase max RLPx message size to 16mb, per EIP-706
* make sure both accept/connect timeout after 10s
* aim to log every connection attempt once at debug level
* make capability-id/context-id check more accurate
* disallow random messages before hello
@arnetheduck arnetheduck merged commit 1467b14 into master Nov 5, 2024
18 checks passed
@arnetheduck arnetheduck deleted the hello-fixes branch November 5, 2024 15:30
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.

1 participant