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

Return proper Disconnect reasons #1214

Open
ElFantasma opened this issue Nov 19, 2024 · 0 comments
Open

Return proper Disconnect reasons #1214

ElFantasma opened this issue Nov 19, 2024 · 0 comments
Labels
network Issues related to network communication

Comments

@ElFantasma
Copy link
Contributor

On p2p message Disconnect we should return a disconnect reason from the spec

We need to provide meaningful errors on all our p2p layer to be able to convert the error into a proper disconnect reason.

@ElFantasma ElFantasma added the network Issues related to network communication label Nov 19, 2024
@ElFantasma ElFantasma added this to the [L1] 4 - P2P Network milestone Nov 19, 2024
github-merge-queue bot pushed a commit that referenced this issue Nov 20, 2024
**Motivation**

`eth/status` hive tests check proper handling of Status message and a
malicious Status message.

**Description**

- `eth/status` tests now are enabled and passes
- Added a check on RLPDecoding to prevent an error that panicked
- Now sending a `Disconnect` message on error

Closes #420 

Pending:
- Created a
[ticket](#1214)
to return proper disconnect reasons depending on the returned
`RLPxError`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
network Issues related to network communication
Projects
Status: No status
Development

No branches or pull requests

1 participant