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

Client Network Improvements #1031

Merged
merged 3 commits into from
Jan 6, 2021
Merged

Client Network Improvements #1031

merged 3 commits into from
Jan 6, 2021

Conversation

holgerd77
Copy link
Member

This PR does the following:

  • Fixes a severe devp2p bug not sending the nextForkBlock correctly on ETH.sendStatus() msg
  • Improves RLPx disconnect reason debug output
  • Updates Goerli bootnodes

@codecov
Copy link

codecov bot commented Jan 5, 2021

Codecov Report

Merging #1031 (37e1721) into master (b88cf95) will not change coverage.
The diff coverage is 66.66%.

Impacted file tree graph

Flag Coverage Δ
block 77.92% <ø> (ø)
blockchain 77.92% <ø> (ø)
client 87.07% <ø> (ø)
common 91.87% <ø> (ø)
devp2p 82.61% <66.66%> (ø)
ethash 82.08% <ø> (ø)
tx 86.25% <ø> (ø)
vm 83.05% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@holgerd77 holgerd77 force-pushed the client-network-improvements branch from da63b69 to 37e1721 Compare January 5, 2021 19:08
@@ -208,7 +208,7 @@ export class ETH extends EventEmitter {
this._latestBlock = status.latestBlock
}
const forkHashB = Buffer.from(this._forkHash.substr(2), 'hex')
const nextForkB = Buffer.from(this._nextForkBlock.toString(16), 'hex')
const nextForkB = int2buffer(this._nextForkBlock)
Copy link
Member

Choose a reason for hiding this comment

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

I don't really see how this is a fix to a bug? What is changed here?

Copy link
Member Author

Choose a reason for hiding this comment

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

I am just a simple man and still not so fluent in Buffer operations after all these years 😜 . The only thing I can say here is that the old code delivered an empty Buffer, just re-tested this with Node to be sure:

> let nextForkBlock = 5
undefined
> Buffer.from(nextForkBlock.toString(16), 'hex')
<Buffer >

Copy link
Contributor

Choose a reason for hiding this comment

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

ha! here is some explanation: nodejs/node#24491 (comment)

@holgerd77
Copy link
Member Author

@alcuadrado @ryanio this is a good PR example where codecov/patch gets a bit annoying in the current setup.

Copy link
Contributor

@ryanio ryanio left a comment

Choose a reason for hiding this comment

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

lgtm

@holgerd77 holgerd77 merged commit 01031f2 into master Jan 6, 2021
@holgerd77 holgerd77 deleted the client-network-improvements branch January 6, 2021 16:58
@holgerd77 holgerd77 mentioned this pull request Jan 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants