Questions tagged [networking]
The networking tag has no usage guidance.
44
questions
0
votes
2
answers
85
views
duplicated sessionkey
In polkadot.js staking , when i put the session key, the result is "duplicated session key"
I use the command in SSH "echo '{"id":1,"jsonrpc":"2.0","...
0
votes
2
answers
34
views
How to declare a RPC endpoint in the node config?
The public-addr option allows to declare the node p2p endpoint, allowing to use DNS for example, or different port than the listen port if using docker port mapping.
--public-addr <PUBLIC_ADDR>.....
3
votes
1
answer
59
views
How I use Database Snapshot Services correct
I want use Database Snapshot Services, because making genesis to last block takes too much time.... so I used POLKACHU site, the code is.
" curl -o - -L https://snapshots.polkachu.com/snapshots/...
1
vote
1
answer
132
views
Connect external parachain node to local network relay chain
I currently have a local relay chain with 4 validators and 2 collator nodes from 2 different parachains running. I want to connect another node that is out of network to one of the parachains. Is this ...
0
votes
1
answer
55
views
Substrate node handshake
I'm trying to do substrate node handshake. As far as I understand we first do Noise XX handshake with our initial request and then we proceed to upgrade the connection.
With the following code the ...
3
votes
4
answers
693
views
How to setup bootnode to use DNS address instead of IP4?
I currently have a node running on the cloud and I've set its websocket port to a custom domain following Polkadot's Nginx config (here). I would like to be able to use this node as a bootnode for ...
1
vote
0
answers
30
views
Write node details to IPFS
I want to write the multi-addresses of all nodes in my network to a file on the IPFS. I see that there's this module that can be used to write data to IPFS, I was just wondering whether it would be ...
0
votes
0
answers
87
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 ...
0
votes
0
answers
11
views
Getting MissingVotesFromCoordinator and disputes every block
I am running relay chain based on polkadot-v0.9.40 and I have a connected parachain. I am getting the following error for a couple of days now on the Validator nodes.
2023-12-24 11:51:12 New dispute ...
2
votes
1
answer
57
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?
1
vote
0
answers
65
views
Parachain stuck at authoring runtime upgrade block
Our testnet parachain is stuck exactly at the block in which the runtime upgrade is authored. It was authorized and enacted via parachainSystem as recommended. The upgrade neither includes any ...
0
votes
0
answers
34
views
when running a validating nodes, firewall setting is essential?
when running a nodes, firewall is essential?
i used this command sudo ufw allow 3033/tpc but it`s result is "ERROR: Bad port"
what`s the problem? can i just done "sudo ufw enable" ...
11
votes
1
answer
114
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 ...
3
votes
1
answer
55
views
Circular dependency
I am in the process of making the block handler modular (https://github.com/paritytech/substrate/pull/14014 pending now). We have this scenario:
build_network() expects all the components constructed/...
5
votes
0
answers
121
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 ...
3
votes
1
answer
112
views
How can I set multiple bootnodes and have them communicate with each other?
I would like to know how i can set up multiple bootnodes that share the same state. Would doing this require the bootnodes to share the same database? I know this is basic substrate staff but it would ...
0
votes
2
answers
90
views
Why the elections are not happening in polkadot relay chain?
I have added election_phragmen pallet in westend chain but the elections are still not taking place so i am facing an issue in adding validators. The validators i am adding remain in waiting state.In ...
3
votes
2
answers
123
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 ...
2
votes
1
answer
22
views
Is it possible to delete the network peer database without deleting the chain data?
The Substrate chain and Parachain data directory contains 3 sub-directories, db, keystore, and network.
A long time ago the network directory used to contain the database of peers, but now appears to ...
1
vote
1
answer
49
views
Blocktime double than expected (Standalone network)
We are currently running a standalone network, with the blocktime set to 6000ms, but we are seeing fluctuating values as below
As you can see, there is no real relation between blocksizes or ...
1
vote
0
answers
64
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 ...
2
votes
0
answers
23
views
Are messages on parachains buffered on the network differently than they are in standalone environments?
We are adding custom networking/gossip logic to our codebase to handle other off-chain protocols over the gossip network. We experience reliability issues in the parachain environment that are both ...
3
votes
0
answers
37
views
Is sc_network safe to use for offchain gossip protocols in a parachain context?
I want to leverage the Substrate peerset to build an offchain gossip protocol. This protocol will send lots of messages at the beginning of every session. Are there reasons this would be a bad idea?
...
0
votes
1
answer
43
views
What incentives exist for a full node to provide block headers to a light client?
As I understand it, substrate light clients (a.k.a smoldot) connect to full nodes in order to receive block headers.
I am wondering about what incentives these full nodes have to keep providing block ...
0
votes
1
answer
41
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 ...
14
votes
0
answers
92
views
Outbound network traffic linearly growing with offchain protocol and recommendations for handling traffic growth
Issue
We are experiencing a behaviour on our standalone/parachain node where the Network Bps on our cloud provider linearly increases throughout the lifecycle of our protocol. The increase continues ...
5
votes
1
answer
93
views
How to setup a special networking node
The goal of the node would be to export its list of peers on an interval and publish it on IPNS to provide a dynamic bootstrap option for new peers. This helps if the static list published in a ...
4
votes
1
answer
231
views
Node doesn't peer with a network specifying bootNodes
we have an existing parachain network consisting of one archive node and 4 rpc nodes that are peering and synced with the relay chain.
They run inside docker containers in different virtual machines. ...
0
votes
0
answers
18
views
How to use NetworkWorker methods from a pallet?
I'm using NodeTemplate to build my blockchain and it seems that NetworkWorker is too low level kind of thing. Particularly I need a way to manage connected peers (list, disconnect).
2
votes
1
answer
90
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
113
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, ...
5
votes
0
answers
116
views
New collators not peering - shouldHavePeers: false
In our parachain setup we have one healthy collator node producing blocks.
I tried to add two bootnodes and one collator to the set (all of them connecting to the existing collator). So for the ...
3
votes
1
answer
64
views
Is there a size limit on substrate messages?
So, substrate uses a bunch of network messages like block announce, grandpa message, block request-response, transaction. Substrate has notification substream open sending and receiving these messages ...
4
votes
0
answers
92
views
How are polkadot bootnodes set up? [duplicate]
I'm trying to set up my own public blockchain and have been running into issues when setting up a bootnode to be accessible over DNS rather than IP4. Based on the Polkadot chain specification, their ...
1
vote
1
answer
76
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 -...
6
votes
1
answer
93
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
107
views
How are solo chain validators protected against DoS?
It's clear that we must include the IP addresses to our validators on our chainspec if we are starting a solo-chain (Correct me if I am wrong here, does it need to be a validator IP or can it be any ...
12
votes
0
answers
229
views
How to receive P2P messages using sc-network-gossip
Overview
I'm interested to understand how to use sc-network-gossip's GossipEngine to receive P2P messages, not just gossip messages. The motivation is that I would like to send specific peers specific ...
2
votes
1
answer
522
views
What is an RPC node?
What is an RPC node and how to build one as a developer.
Also, are there any resources available?
1
vote
0
answers
64
views
What's the meaning of "low connectivity, authority lookup failed for too many validators"?
My validator node shows the issue "low connectivity, authority lookup failed for too many validators", what does this mean? And is it dangerous for the safety of the chain?
3
votes
1
answer
184
views
Is it possible to connect to more than a single bootnode?
Right now I have one cloud instance running a node, and 2 local instances on the same computer. On my local instances, in the bootnodes flag I pass the address to my cloud instance. Initially I was ...
3
votes
0
answers
162
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 =&...
6
votes
1
answer
120
views
How-to extract a list of all nodes in blockchain X network and test they are connectable?
Where should I start and what advice can you give to help me get started with this task.
I guess my goal is to build a network monitoring tool that can check the health, uptime and reputation of the ...
2
votes
1
answer
256
views
Sometimes Polkadot JS won't connect to the local node, unless I enable rpc-cors all
I am using the polkadot js appimage and sometimes while connecting to my node, I see this :
Blocked connection to WebSockets server from untrusted origin: Some("file://").
I've tried running ...