Skip to main content

Questions tagged [libp2p]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
31 views

Connect a local node to the Rococo Parachain Network

Issue: Currently, I have a parachain and a relay chain running on Rococo testnet locally. I'm having trouble connecting my node to the parachain network (0 peers to 1 peer). Goal: I'm trying to ...
0 votes
0 answers
10 views

unable to discover and connect the peer to the --chain contracts-rococo-local

I'm trying to have my node discover and connect to the blockchain terminal so that the peer count will update from 0 peers to 1 peers. However, I keep getting this message: 2024-03-15 18:38:36.394 ...
0 votes
0 answers
17 views

I'm trying to connect my node to the parachain that im logging in with on my express backend

My goal is to be able to see the discover, incoming connection, and accepting connection in the parachain network, which I'm guessing should update the Idle 0 Peers to 1 Peer. I'm still currently ...
5 votes
2 answers
544 views

Get a local node identity / peer id

I need to know my node's peer identity to use it as a boot node. Didn't start the node with --node-key. Also, the node has been running for so long that I can no longer access the startup logs ...
0 votes
0 answers
86 views

Connect a frontend application with a Substrate blockchain as a backend without using an RPC endpoint

I'd like to connect my frontend application (built on Rust) to be able to connect to my network without using any hardcoded endpoints to create a bottleneck for DDoS attacks. One possibility for this ...
2 votes
1 answer
179 views

which libp2p module do I use to broadcast data to peers in the network e.g blockchain? do I use mdns or kademlia for blockchain?

I am trying to understand lib2p2 Rust by looking at the rust libp2p examples in the rust libp2p github repo and substrate network module as well. My question is, If I am building a peer to peer ...
1 vote
0 answers
40 views

Polkadot-v1.0.0: sc-network is failing to compile

When specifying sc-network as a dependency: sc-network = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v1.0.0" } I get a compile error: error[E0433]: ...
2 votes
1 answer
52 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?
11 votes
1 answer
107 views

How-to bootstrap your new blockchain network without centralised infrastructure

I am looking for best practices around this topic. I liked how webrtc-star was easy to use, however I have not found anything in the rust ecosystem that is similar. In my mind it would be great if ...
4 votes
1 answer
83 views

How to perform **manual sync**?

Substrate automatically syncs up upon starting and supports --sync <SYNC_MODE> full, fast, fast-unsafe and wrap However, I'd like to have manual to prevent the node from synchronizing when ...
5 votes
0 answers
120 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 ...
1 vote
2 answers
2k views

Failed to run custom build command for `libp2p-core v0.34.0`

Compile successfully on mac, but it fails to compile on linux. repo: https://github.com/substrate-developer-hub/substrate-node-template system: linux(centos) error log: Compiling sp-panic-handler ...
3 votes
2 answers
152 views

How to setup the network of a validator node?

I read good practices of how to setup a validator node, but I did not see a network part. A validator node should not expose a public RPC API (it should only be internal, allowing access through a VPN ...
0 votes
1 answer
54 views

Light client key

Does the smoldot light client automatically generate keys or use the secret phrase to generate keys? In the substrate connect tutorial, client node seems automatically connects to the network with the ...
3 votes
2 answers
118 views

How to check if a node's p2p endpoint is working properly?

Is there a way to verify that an endpoint is properly set up to receive p2p connections using ping, curl or some other tool? The reason I ask this is because I'd like to set up a proxy to use a custom ...
3 votes
1 answer
87 views

type annotations needed in libp2p-noise

On cargo build --release in my substrate project I am getting error[E0282]: type annotations needed --> /home/asmita-mfs/.cargo/registry/src/github.com-1ecc6299db9ec823/libp2p-noise-0.32.0/src/...
1 vote
0 answers
62 views

Substrate standalone network : Peers disconnect and block production halts

We are currently running a 5 validator standalone network, after about ~1000 blocks the peers disconnect and block production stalls, all the nodes continue to produce blocks but does not gossip to ...
0 votes
1 answer
40 views

Is it possible to inspect which nodes are connected to your node via rpc or polakdot.js?

I am trying to get some information about the (other) nodes that are connected to my parachain node. I can see how many nodes are connected ( in telemetry and polkadotjs apps), but how can I find ...
2 votes
1 answer
89 views

How to limit the outbound traffic (bandwidth)?

We are hosting some parachain full nodes on the cloud. However we found that 80% of the costs come from the internet traffic, and specifically, we found that the outbound traffic of the relaychain ...
3 votes
1 answer
109 views

What is the best way to add additional libp2p protocols to Substrate client?

We want to reuse the clients libp2p instance for receiving threshold signature shares directly from our users, for key resharing/rotation as validators join/leave the active validator set, ...
1 vote
1 answer
37 views

Chain crashing with `SinkImpl::poll_ready called after error.`

Experiencing panic in libp2p-websocket with logs looking like Thread 'tokio-runtime-worker' panicked at 'SinkImpl::poll_ready called after error.'
6 votes
1 answer
91 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
1 answer
61 views

NewContractNotFunded error using contracts pallet with version 4.0.0-dev

I'm running into an issue where I cannot deploy contracts to my chain, any help is appreciated. I'm using the same setup as: https://github.com/paritytech/substrate/blob/...
5 votes
1 answer
304 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 ...