Skip to main content
10 votes
Accepted

How do extrinsic weights apply to Raspbery Pi full-nodes?

The Weight system is not about block production, but actually about block import. Remember that the high level story around weights is that we are trying to protect the network from blocks that are ...
Shawn Tabrizi's user avatar
  • 16.1k
10 votes
Accepted

What is the difference between full nodes, authoring nodes, and/or collator nodes

Full nodes are nodes that just follow the chain. This means they are connected to the network and import all the blocks that are being produced. Authoring nodes and collators are the same. Collators ...
bkchr's user avatar
  • 11.6k
10 votes
Accepted

What are the latest minimum specs for running a Polkadot/Kusama node (full node/archive node)?

The specs that you see in the wiki are up to date: CPU: Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz Storage: A NVMe solid state drive. Should be reasonably sized to deal with blockchain growth. Starting ...
Oliver Tale-Yazdi's user avatar
7 votes

How to limit libp2p traffic or set maximum number of peers

The polkadot client supports limiting the number of incoming and outgoing peers. The default is currently at 25 each, but you can modify it using --in-peers 10 --out-peers 10. More details can be ...
Crystalin's user avatar
  • 790
7 votes

What is the difference between full nodes, authoring nodes, and/or collator nodes

There are also Archive Nodes which are specifically full nodes but do not prune any historical state. This means they keep in storage all of the blockchain state for all blocks since genesis.
Shawn Tabrizi's user avatar
  • 16.1k
6 votes

How do I kill a running node once I close the terminal I launched it in?

This question is not specific to Substrate or Polkadot, but we are glad to help you. Pressing Ctrl+C in a terminal does the same as sending the INT signal to the running process. The simplest way to ...
wigy's user avatar
  • 375
6 votes

How to start a private network on 2 computers?

I've not tried it on a local network - my nodes are all either on a single machine or in the cloud - but there are a couple of options that suggest it'll probably just work on the same private IP ...
JelliedOwl - Paul's user avatar
5 votes
Accepted

Sync error while upgrading Polkadot SDK from 1.0 to 1.6

Your problem is that you did not bump the spec_version. So, when the node reaches this block it assumes that the native runtime is compatible and tries to use it. However, it isn't compatible and it ...
bkchr's user avatar
  • 11.6k
4 votes
Accepted

How-to extract a list of all nodes in blockchain X network and test they are connectable?

An easy way to monitor the network condition is to host your own Telemetry server just like how Parity provides the public service. You can find the code at here. The substrate client will connect to ...
h4x3rotab's user avatar
  • 717
4 votes
Accepted

Polkadot archive node running on docker uses a lot of space

The wiki says that it was 15 to 20GB around Kusama's 1.6 millionth block. Kusama is now at > 12 million blocks. Taken from the docs: Archive node An archive node does not prune any block or state ...
Bruno's user avatar
  • 8,315
3 votes
Accepted

Memory leak after upgrading client to polkadot-0.9.22

There was at least one known issue here that has been resolved in the latest releases: https://github.com/paritytech/substrate/issues/11604 https://github.com/paritytech/cumulus/pull/1382 The best ...
Shawn Tabrizi's user avatar
  • 16.1k
3 votes
Accepted

How to deploy a hardened, secure, production-ready Substrate node?

For production ready I think the best guide is probably to crib as much of the validator setup as possible. This is designed to set you up with best security practices. (In fact I would read ...
Squirrel's user avatar
  • 3,849
3 votes

Polkadot archive node running on docker uses a lot of space

when running nodes with --pruning=archive, there is sadly no silver bullet that will free up space for you -- you are specifying to keep all state data from block 0, and that slowly grows. The space ...
insipx's user avatar
  • 373
3 votes
Accepted

How to deploy a parachain node and connect it to an existing relay chain node?

The parachain node and the relay chain node were tightly coupled and could not be run individually. The parachain node directly calls into the relay chain client. Not all of the required relay chain ...
skunert's user avatar
  • 46
3 votes

What are the latest minimum specs for running a Polkadot/Kusama node (full node/archive node)?

Practically, when running a Kusama parachain (a program with both a live parachain client and a relay chain client), we give it 4 cores and 8 Gb RAM on GCP. Two cores are sufficient for one client. ...
h4x3rotab's user avatar
  • 717
3 votes
Accepted

Is it possible to use Regex crate within a pallet?

All pallet dependencies should support no_std. regex does not support no_std. You can use safe-regex as an alternative or any other dependency which supports no_std. [dependencies] safe-regex = "...
Ayush Mishra's user avatar
3 votes
Accepted

Astar Startup Error after upgrading from version v4.23.0 to v4.33.0

Please check release note v4.29.1 https://github.com/AstarNetwork/Astar/releases/tag/v4.29.1 In case frontier DB migration failure, please delete frontier db. {base-path}/chains/shiden/frontier or {...
Shunsuke's user avatar
  • 432
3 votes
Accepted

Grandpa stuck at "Polling"

The issue was the error: "ERROR tokio-runtime-worker sub-libp2p: add_set_reserved_peer with unknown protocol: /b0d742dbbf156179748027452dcd7c57c4eec99183ddab43f8def5c2b8bfcad6/grandpa/1 " ...
Justin Frevert's user avatar
2 votes

The node template can't fetch the accounts from chain-spec.rs

The alice, bob and other predefined accounts are only visible despite deleting them. This is just a behavior of the Polkadot JS UI when using a "development" chain. Note in your chain spec ...
Shawn Tabrizi's user avatar
  • 16.1k
2 votes

Running a listener node in ReadOnly mode

You can set up an Archive node for this purpose. Instead of passing the --validator flag you need to pass --offchain-worker=always --pruning=archive flags while running the node. For more details ...
Faraz Ahmad's user avatar
2 votes

How to get the hex decoded version of a Peer Id?

The PeerID is encoded in bs58. So you need to decode it. node_authorization: NodeAuthorizationConfig { nodes: vec![ ( OpaquePeerId(bs58::decode("...
cuteolaf's user avatar
  • 103
2 votes
Accepted

How do nodes reach a consensus on storage items from a custom pallet?

. Let's start with consensus. Nodes do not directly agree on what storage values your custom pallet has but on what block should be included next in the chain. Block, in turn, consists of transactions,...
Valentun's user avatar
  • 220
2 votes
Accepted

Is it possible to delete the network peer database without deleting the chain data?

We currently don't store the known peers. There is an issue to bring this back. So, currently you only find the node key file in the network directory.
bkchr's user avatar
  • 11.6k
2 votes

Recovering From No Space on Device

Is this recoverable, or do I need to resync from scratch? No, that is sadly not recoverable. We have an issue open to stop the node when the disk is running full. This should in the future prevent ...
bkchr's user avatar
  • 11.6k
2 votes

Is there anyway to tell if a transaction was submitted by a light client on a substrate blockchain?

No there is no way to identify the source of a transaction. In general we are trying to make transaction submission as anynomous as possible. Including anything to identify the node type or similar ...
bkchr's user avatar
  • 11.6k
2 votes
Accepted

Add ed25519 address to chain_spec.rs

https://docs.rs/array-bytes/6.1.0/array_bytes/fn.hex_n_into_unchecked.html https://docs.rs/array-bytes/6.1.0/array_bytes/fn.hex2array_unchecked.html https://github.com/paritytech/substrate/blob/...
AurevoirXavier's user avatar
  • 10.7k
2 votes
Accepted

How can I set multiple bootnodes and have them communicate with each other?

Generate the key (two ways) Use subkey, and put the key into <DATA-DIR>/chains/<CHAIN-NAME>/network/<KEY> Run the node and stop it, the key will be created and it can be found under ...
AurevoirXavier's user avatar
  • 10.7k
2 votes
Accepted

How can i fetch the node identity from cli?

You can use curl command from cli to get the node identity using the following command: curl -sS -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0"...
Shubham Gupta's user avatar
2 votes

Grandpa stuck at "Polling"

Please try the following: It seems like you've tried to created a custom chain definition to synchronise and validate with different authorities. But you've only created a custom chain specification ...
Luke Schoen's user avatar
  • 2,346
2 votes

How to join substrate as infrastructure provider

It's great you are interested in the Substrate Builders program. How the program works is that you submit your interest and expect to be connected with a member of the program team to understand more ...
Josh's user avatar
  • 425

Only top scored, non community-wiki answers of a minimum length are eligible