Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

[devp2p discovery]: remove deprecated_echo_hash #11564

Merged
merged 1 commit into from
Mar 17, 2020

Conversation

niklasad1
Copy link
Collaborator

@niklasad1 niklasad1 commented Mar 11, 2020

Removes support for deprecated_echo_hash ping/pong messages in devp2p-discovery.
It will not work with nodes prior to stable 2.0.5 (#9526) anymore

Removes support for `deprecated_echo_hash` ping/pong in devp2p-discovery.
It will not work with nodes prior to `stable 2.0.5` (#9526)

if node_entry.endpoint.is_valid_sync_node() {
let mut added = HashMap::with_capacity(1);
Copy link
Collaborator Author

@niklasad1 niklasad1 Mar 11, 2020

Choose a reason for hiding this comment

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

move this here, to not have to clone it.

None
},
Entry::Occupied(entry) => {
let request = entry.remove();
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

entry::remove() returns it by value, thus clone removed.

Copy link
Collaborator

@ordian ordian left a comment

Choose a reason for hiding this comment

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

LGTM!

@ordian ordian added A8-looksgood 🦄 Pull request is reviewed well. M4-core ⛓ Core client code / Rust. labels Mar 11, 2020
Copy link

@vorot93 vorot93 left a comment

Choose a reason for hiding this comment

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

LGTM

@dvdplm dvdplm merged commit 3231454 into master Mar 17, 2020
@dvdplm dvdplm deleted the na-devp2p-drop-deprecated-echo-hash branch March 17, 2020 15:43
ordian added a commit that referenced this pull request Mar 24, 2020
* master:
  informant: display I/O stats (#11523)
  [devp2p discovery]: remove `deprecated_echo_hash` (#11564)
  [secretstore] create db_version file when database doesn't exist (#11570)
  Remove Parity's Security Policy (#11565)
  ethcore/res: enable ecip-1088 phoenix upgrade for kotti and mordor testnets (#11529)
  Misc docs and renames …and one less clone (#11556)
  [secretstore]: don't sign message with only zeroes (#11561)
  [devp2p discovery]: cleanup (#11547)
  Code cleanup in the sync module (#11552)
  initial cleanup (#11542)
  Warn if genesis constructor revert (#11550)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants