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

[R4R] p2p: define DiscReason as uint8 #958

Merged
merged 1 commit into from
Jun 23, 2022

Conversation

keefel
Copy link
Contributor

@keefel keefel commented Jun 22, 2022

Description

Define DiscReason as uint8, cherry-pick from ethereum/go-ethereum#24507, and fix CVE-2022-29177.

Rationale

All other implementations store disconnect reasons as a single byte, so bsc should do it too.

Example

NA

Changes

Notable changes:

All other implementations store disconnect reasons as a single byte,
so go-ethereum should do it too.
@keefel keefel changed the title p2p: define DiscReason as uint8 [R4R] p2p: define DiscReason as uint8 Jun 23, 2022
@unclezoro unclezoro merged commit 6ec6eda into bnb-chain:develop Jun 23, 2022
This was referenced Jul 28, 2022
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.

6 participants