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

Backports to 2.0.0-beta #9094

Merged
merged 15 commits into from
Jul 17, 2018
Merged

Backports to 2.0.0-beta #9094

merged 15 commits into from
Jul 17, 2018

Conversation

5chdn
Copy link
Contributor

@5chdn 5chdn commented Jul 11, 2018

@5chdn 5chdn added A2-insubstantial 👶 Pull request requires no code review (e.g., a sub-repository hash update). A8-backport 🕸 Pull request is already reviewed well in another branch. M2-installer 📲 Installers for MacOS and Windows. labels Jul 11, 2018
@5chdn 5chdn added this to the 2.0 milestone Jul 11, 2018
jimpo and others added 2 commits July 12, 2018 09:05
* discovery: Only add nodes to routing table after receiving pong.

Previously the discovery algorithm would add nodes to the routing table
before confirming that the endpoint is participating in the protocol. This
now tracks in-flight pings and adds to the routing table only after receiving
a response.

* discovery: Refactor packet creation into its own function.

This function is useful inside unit tests.

* discovery: Additional testing for new add_node behavior.

* discovery: Track expiration of pings to non-yet-in-bucket nodes.

Now that we may ping nodes before adding to a k-bucket, the timeout tracking
must be separate from BucketEntry.

* discovery: Verify echo hash on pong packets.

Stores packet hash with in-flight requests and matches with pong response.

* discovery: Track timeouts on FIND_NODE requests.

* discovery: Retry failed pings with exponential backoff.

UDP packets may get dropped, so instead of immediately booting nodes that fail
to respond to a ping, retry 4 times with exponential backoff.

* !fixup Use slice instead of Vec for request_backoff.
* Add seperate default DB path for light client (#8927)

* Improve readability
@5chdn 5chdn changed the title parity-version: betalize 2.0 Backports to 2.0.0-beta Jul 12, 2018
@5chdn 5chdn removed the A2-insubstantial 👶 Pull request requires no code review (e.g., a sub-repository hash update). label Jul 12, 2018
tomaka and others added 12 commits July 13, 2018 14:03
…9097)

* Revert "Replace `std::env::home_dir` with `dirs::home_dir` (#9077)"

This reverts commit 7e77932.

* Restore some of the changes

* Update parity-common
* Insert Kovan hardcoded headers until #7690241

* Insert Kovan hardcoded headers until block 7690241

* Insert Ropsten hardcoded headers until #3612673

* Insert Mainnet hardcoded headers until block 5941249
* Completely remove all dapps struct from rpc

* Remove unused pub use
* `evm bench` use valid dependencies

Benchmarks of the `evm` used stale versions of a couple a crates that
this commit fixes!

* fix warnings
@5chdn 5chdn added the M4-core ⛓ Core client code / Rust. label Jul 17, 2018
@5chdn 5chdn merged commit 6eae372 into beta Jul 17, 2018
@5chdn 5chdn deleted the a5-beta-lize branch July 17, 2018 11:54
@ascjones ascjones mentioned this pull request Nov 13, 2018
15 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-backport 🕸 Pull request is already reviewed well in another branch. M2-installer 📲 Installers for MacOS and Windows. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.