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

Fix nodes not connecting to each other #330

Merged
merged 2 commits into from
Jul 16, 2018

Conversation

tomaka
Copy link
Contributor

@tomaka tomaka commented Jul 16, 2018

When a local node answers a Kademlia query about itself, it needs to return the locally-known addresses it's listening on, instead of the content of its peer store which is going to be empty.

@tomaka tomaka added A0-please_review Pull request needs code review. M4-core labels Jul 16, 2018
@tomaka
Copy link
Contributor Author

tomaka commented Jul 16, 2018

This fixes the fact that nodes would only connect to bootstrap nodes (for which the address is known in advance) and not to one another, since they didn't learn about the other nodes' addresses.

@arkpar
Copy link
Member

arkpar commented Jul 16, 2018

Nodes should always advertise external address, not the one they are listening on.

@tomaka
Copy link
Contributor Author

tomaka commented Jul 16, 2018

On the theoretical level, the situation is kind of a mess because we are so generic over the multiaddress. Routing with libp2p in general should be re-though. But you're right ; since in practice we only use TCP/IP I made the change to only report external addresses.

@arkpar arkpar merged commit e20d48b into paritytech:master Jul 16, 2018
@tomaka tomaka deleted the fix-interconnectivity branch July 16, 2018 12:47
lamafab pushed a commit to lamafab/substrate that referenced this pull request Jun 16, 2020
fix the following error in the log:
Could not extract candidates from block body of imported block ...
JoshOrndorff pushed a commit to moonbeam-foundation/substrate that referenced this pull request Apr 21, 2021
Some fields of the RuntimeAPI/RPC output were incorrectly named.
liuchengxu pushed a commit to chainx-org/substrate that referenced this pull request Aug 23, 2021
* Update version 0.9.1

* Format code

* Modify decoding mode (paritytech#318)

* Update chainspec V0.9.1

* Change sudo & council_address

* Fix Signature coverage (paritytech#330)

* Update V0.9.2

* Feature/xbridge log (paritytech#331)

* Update log

* Update wasm
liuchengxu added a commit to chainx-org/substrate that referenced this pull request Aug 23, 2021
* Fix the initialization of TotalBalance in balances

* Update Cargo.lock
liuchengxu added a commit to autonomys/substrate that referenced this pull request Jun 3, 2022
…-metadata

Fix the secondary runtime metadata
helin6 pushed a commit to boolnetwork/substrate that referenced this pull request Jul 25, 2023
…on (paritytech#330)

* Update balances events

* Update node_runtime.scale

* Update default extra to include ChargeAssetTxPayment with extra field

* Fmt
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants