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

p2p: define DiscReason as uint8 #24507

Merged
merged 1 commit into from
Mar 7, 2022
Merged

Conversation

fjl
Copy link
Contributor

@fjl fjl commented Mar 7, 2022

All other implementations store disconnect reason as a single byte, so go-ethereum should do it too.

All other implementations store disconnect reason as a single byte.
@fjl fjl requested a review from zsfelfoldi as a code owner March 7, 2022 10:46
Copy link
Contributor

@holiman holiman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@fjl fjl added this to the 1.10.17 milestone Mar 7, 2022
@fjl fjl merged commit 870b450 into ethereum:master Mar 7, 2022
sidhujag pushed a commit to syscoin/go-ethereum that referenced this pull request Mar 8, 2022
All other implementations store disconnect reasons as a single byte,
so go-ethereum should do it too.
JacekGlen pushed a commit to JacekGlen/go-ethereum that referenced this pull request May 26, 2022
All other implementations store disconnect reasons as a single byte,
so go-ethereum should do it too.
@Misuwp
Copy link

Misuwp commented Jul 29, 2022

dash-eu.luxor.tech:5050.

jiseongnoh added a commit to jiseongnoh/klaytn that referenced this pull request Jul 29, 2022
ken0x4b656e added a commit to stars-labs/heco-chain that referenced this pull request Jul 29, 2022
@Nanyan
Copy link

Nanyan commented Jul 29, 2022

@fjl May be it's better to define DiscReason as uint16, for the compatibility among different versions.

owen9web3 added a commit to cube-network/Cube that referenced this pull request Aug 1, 2022
maoueh pushed a commit to streamingfast/go-ethereum that referenced this pull request Aug 3, 2022
All other implementations store disconnect reasons as a single byte,
so go-ethereum should do it too.
viaweb3 added a commit to kcc-community/kcc that referenced this pull request Aug 11, 2022
iczc pushed a commit to scroll-tech/go-ethereum that referenced this pull request Oct 8, 2022
All other implementations store disconnect reasons as a single byte,
so go-ethereum should do it too.
iczc added a commit to scroll-tech/go-ethereum that referenced this pull request Oct 12, 2022
p2p: define DiscReason as uint8 (ethereum#24507)

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

Co-authored-by: Felix Lange <fjl@twurst.com>
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Appp

wgr523 pushed a commit to XinFinOrg/XDPoSChain that referenced this pull request Mar 23, 2023
p2p: define DiscReason as uint8 (ethereum#24507)

All other implementations store disconnect reasons as a single byte,
so go-ethereum should do it too.
wgr523 added a commit to XinFinOrg/XDPoSChain that referenced this pull request Mar 23, 2023
Problem: GHSA-wjxw-gh3m-7pm5

Fix: add non-negative `if` condition.

cannot use fix in geth (ethereum#24507) since modifying DiscReason to uint8 messes up the message encode
wjrjerome pushed a commit to XinFinOrg/XDPoSChain that referenced this pull request Mar 26, 2023
Problem: GHSA-wjxw-gh3m-7pm5

Fix: add non-negative `if` condition.

cannot use fix in geth (ethereum#24507) since modifying DiscReason to uint8 messes up the message encode
iquidus pushed a commit to ubiq/go-ubiq that referenced this pull request Mar 30, 2023
All other implementations store disconnect reasons as a single byte,
so go-ethereum should do it too.
liam-lai pushed a commit to XinFinOrg/XDC-Subnet that referenced this pull request May 25, 2023
Problem: GHSA-wjxw-gh3m-7pm5

Fix: add non-negative `if` condition.

cannot use fix in geth (ethereum/go-ethereum#24507) since modifying DiscReason to uint8 messes up the message encode
otherview pushed a commit to vechain/go-ethereum that referenced this pull request Mar 8, 2024
All other implementations store disconnect reasons as a single byte,
so go-ethereum should do it too.
libotony pushed a commit to vechain/go-ethereum that referenced this pull request Mar 8, 2024
All other implementations store disconnect reasons as a single byte,
so go-ethereum should do it too.
nibty pushed a commit to FairCrypto/go-ethereum that referenced this pull request Apr 10, 2024
All other implementations store disconnect reasons as a single byte,
so go-ethereum should do it too.
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.

4 participants