Questions tagged [peers]
The peers tag has no usage guidance.
14
questions
2
votes
1
answer
146
views
How to get Multiaddr of a peer?
What is idiomatic way to get peer's Multiaddr given we have its PeerId?
There exists get_authority_ids_by_peer_id which seems useful but when spinning up multiple nodes locally which connect to each ...
5
votes
0
answers
118
views
Query node information from PeerId only
How do I get Listen addresses of a node (and possibly other info like agent, protocols etc..) given that I only have node's PeerId? Is there any existing solutions available for this? Simple enter ...
2
votes
1
answer
44
views
Can a node reconnect to a network without boot nodes
Is it possible to configure a full node to remember a list of last peers it connected to so when it restarts it doesn't need to rely on boot nodes to connect successfully to the chain network?
0
votes
1
answer
54
views
Tutorial - Simulate a network: I've started 4 nodes (Alice/Bob/Charlie/Eve), but not all of the nodes show '3 peers'
https://docs.substrate.io/tutorials/get-started/simulate-network/
While working on this tutorial, I decided to go beyond the Alice and Bob nodes and also started Charlie and Eve nodes. While adding ...
0
votes
2
answers
50
views
bootstrap a peer with a specific nodeId
If you have node keys (generated using subey), is it possible to use them to boot a peer with the corresponding peerId?
is it possible to import the keys and thus have the same peerId without using --...
1
vote
0
answers
29
views
Validator peers disconnecting after producing one block
I am facing an issue with my private chain where I have configured 1 bootnode, 4 validator nodes and 3 non-validator nodes. When I launch the network, the peers are detected, validator node validates ...
1
vote
1
answer
134
views
How to get the hex decoded version of a Peer Id?
I see this example on Substrate's docs:
Node key: c12b6d18942f5ee8528c8e2baf4e147b5c5c18710926ea492d09cbd9f6c9f82a
PeerID (generated from the node key): ...
5
votes
2
answers
380
views
How to obtain a peer address?
In older versions of the Substrate node template, the node would print some helpful information on startup. For example it would print the ports being used for the websocket and p2p endpoints. It ...
1
vote
1
answer
71
views
How do I get my nodes to find each other on macOS?
When I run Alice and Bob validators:
./target/release/polkadot --alice --validator --base-path /tmp/relay/alice --chain chainspec-raw.json --port 30333 --ws-port 9944
./target/release/polkadot --bob -...
1
vote
1
answer
94
views
How to get the Peer count in an Off Chain Worker?
I have an Off Chain Worker that validates some data in IPFS and then calls a function on chain to set the status to valid or invalid. That's all working fine.
However, I do not need all nodes to ...
6
votes
1
answer
82
views
What factors determine who can peer with my node?
From a security standpoint I'd like to understand who can peer with my node. Let's say I make the chainspec public, and someone comes along with a different node binary, and peers with my node, with a ...
3
votes
0
answers
123
views
Troubleshooting : Peering connection failed due to libp2p error [closed]
Following the answer on this post : Need some help understanding this "unexpected end of file" error from my node trying to connect on remote
TRACE tokio-runtime-worker sub-libp3p: Libp2p =&...
4
votes
1
answer
56
views
Nginx troubles on setting a remote validator node
So my node requires port 30333 to peer with other nodes, and since I am using Nginx on the server, I followed this guide : https://wiki.polkadot.network/docs/maintain-guides-how-to-setup-a-validator-...
5
votes
1
answer
201
views
How to limit libp2p traffic or set maximum number of peers
In running a polkadot node on the mainnet, i'd like to know how to limit the maximum number of peers, or if this functionality is already built into the protocol somehow. Since my network traffic is ...