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

Devp2p Improvements and Clean-Ups / Client ID Integration #2538

Merged
merged 5 commits into from
Feb 20, 2023

Conversation

holgerd77
Copy link
Member

Partly picking up things from #2535 (accidental merge)

This PR does the following:

  • Removes (very) outdated Parity DPT ping/pong hack
  • Improved devp2p HELLO logging message (added protocol version and client ID)
  • Use client ID from Client for client HELLO message exchange (previously devp2p default ID was used)

Ready for review and merge, would be nice to still have this included in the releases since the client ID update is a somewhat prominent change.

@codecov
Copy link

codecov bot commented Feb 20, 2023

Codecov Report

Merging #2538 (97fe37c) into master (4d46313) will increase coverage by 5.62%.
The diff coverage is 85.71%.

Additional details and impacted files

Impacted file tree graph

Flag Coverage Δ
block 90.12% <ø> (?)
blockchain 90.11% <ø> (?)
client 87.67% <100.00%> (?)
common 95.82% <ø> (?)
devp2p 91.68% <83.33%> (?)
ethash ∅ <ø> (?)
evm ?
rlp ∅ <ø> (?)
statemanager 89.61% <ø> (?)
trie 90.66% <ø> (?)
tx 93.71% <ø> (?)
util 84.50% <ø> (?)
vm 83.87% <ø> (?)

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

// Filter out snap because we can't yet provide snap endpoints to the peers
// TODO: Remove when we can also serve snap requests from other peers
.filter((c) => c.name !== 'snap')
.map((c) => `${c.name}${c.version}`)
.join(',')}`
.join(',')} clientId=${this._clientId}`
Copy link
Contributor

Choose a reason for hiding this comment

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

nice 👍

Copy link
Contributor

@g11tech g11tech left a comment

Choose a reason for hiding this comment

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

looks good 👍

@holgerd77 holgerd77 merged commit 4aa9753 into master Feb 20, 2023
@holgerd77 holgerd77 deleted the devp2p-improvements branch February 20, 2023 13:53
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.

2 participants