Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Conversation

@tomaka
Copy link
Contributor

@tomaka tomaka commented Jul 30, 2018

Right now once we open a substream to a remote for pinging, this substream is used for both pinging the remote and receiving ping from the remote.

However it looks like the libp2p ping protocol is actually unidirectional. In other words, if A wants to send a ping to B, it needs to have opened a substream to B and cannot use a substream that was opened by B.

This change is backwards compatible and should fix the interop with polkadot-js.

@tomaka tomaka added A0-please_review Pull request needs code review. M4-core labels Jul 30, 2018
@rphmeier rphmeier added A8-looksgood and removed A0-please_review Pull request needs code review. labels Jul 30, 2018
@arkpar arkpar merged commit a812c7c into paritytech:master Jul 31, 2018
@tomaka tomaka deleted the ping-fix branch July 31, 2018 09:36
dvdplm added a commit that referenced this pull request Aug 1, 2018
* master:
  Collator for the "adder" (formerly basic-add) parachain and various small fixes (#438)
  Storage changes subscription (#464)
  Wasm execution optimizations (#466)
  Fix the --key generation (#475)
  Fix typo in service.rs (#472)
  Fix session phase in early-exit (#453)
  Make ping unidirectional (#458)
  Update README.adoc
lamafab pushed a commit to lamafab/substrate that referenced this pull request Jun 16, 2020
This replicates changes to `Environment`/`Proposer` that are used
internally at Cumulus.
liuchengxu pushed a commit to chainx-org/substrate that referenced this pull request Aug 23, 2021
* generate mock trustee addr

* add some comment
liuchengxu pushed a commit to autonomys/substrate that referenced this pull request Jun 3, 2022
helin6 pushed a commit to boolnetwork/substrate that referenced this pull request Jul 25, 2023
…ritytech#458)

* Distinct handling for N fields + 1 hasher vs N fields + N hashers

* tweak comment

* cargo fmt

* fix typo

* Add a few storage specific tests

* clippy fixes

* cargo fmt

* Add a test to specifically address this fix

* comment typo

* Address niggles

* slgihtly nicer iter code
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants