Skip to main content

Questions tagged [block-production]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
10 votes
2 answers
2k views

Are weights really neccessary?

During block authorship, the execution time of each transaction is measured, rather than weights right? Doesn't that mean as a runtime developer, you only need weights for pricing your extrinsics, but ...
Web3 Philosopher's user avatar
9 votes
1 answer
250 views

Single node performance

I've a couple of questions: I'm running a the node-template on a machine that has 8 cores and 64GB of RAM and its using an SSD. I have some pallets working there and I'm using the python client to ...
andresvsm's user avatar
  • 1,114
7 votes
1 answer
166 views

The purpose of epochs in staking

What problem do epochs in staking solve? Why don't stakers win stakes by something as simple as generating data from history + the latest block (so that precomputing stakes is not possible), and then ...
The Quantum Physicist's user avatar
6 votes
1 answer
388 views

Parachain missed blocks due to relay wrong announcement?

On February 20, 2023 around 22:08 UTC, Shiden block production has been hurt and almost stopped during 40 minutes.A lot of collators were missing blocks for no apparent reason. Examples of blocks that ...
bLd's user avatar
  • 182
6 votes
0 answers
69 views

No block produced/validated on parachain for almost a day

We upgraded our testnet Shibuya yesterday, for which we have our own validator network, and block production stalled for almost a whole day. The block on which it was stuck was the one where the ...
Dinonard's user avatar
  • 587
4 votes
1 answer
79 views

how to run some logic before gossiping the block as author?

In substrate-node-template, are there any available ways to execute a task or provide a callback to be executed just before the block gets gossiped to other validators, right after it has produced the ...
dadzerlaze's user avatar
  • 1,083
4 votes
1 answer
108 views

Parachain cannot build blocks after winning a slot

We have a slight issue: we won a parachain slot on Saturday and are still waiting to produce blocks this Monday. https://polkadot.subscan.io/block/14512138?tab=event We should be producing blocks by ...
AwesomeIbex's user avatar
4 votes
1 answer
182 views

How can I make my node generate blocks only when they receive transactions?

In substrate node template we can see that blocks are producing and finalizing if no transaction happening so how I can make my node to only generate blocks when there are transactions happening.
user avatar
4 votes
0 answers
90 views

How does primary slots and secondary vrf slots work?

I am struggling to understand some behaviour on a custom 7 validators solochain. Currently using babe with a 1/4 primary slots probability, the block time is 20 sec, and we have ...
Leouarz's user avatar
  • 353
3 votes
1 answer
149 views

Increasing Block Size

a question about block limit, the amount of bytes that can be stored in each block. From what i can gather this value can be changed Here, However when i change the 5 to lets say 20 (5mb to 20mb) I ...
BRNHINLT's user avatar
  • 132
3 votes
1 answer
155 views

Can a parachain recover from a "block taking too long" error?

We have a parachain testnet running on a local relaychain based on rococo v2. The Parachain is based on Cumulus (Polkadot and Substrate) v0.9.36 - so at the time of writing is the most up-to-date ...
T9b's user avatar
  • 468
3 votes
2 answers
98 views

How much do relaychain node hardware requirements dictate the parachain collator hardware requirements?

Cumulus ties the parachain and the relaychain together, allowing to exchange essential information necessary for the block production of the parachain. Since a parachain collator must build a block (...
sea212's user avatar
  • 549
3 votes
1 answer
88 views

Usage of Pre-Runtime Digest to gossip data from block creator node with PoW

I'm playing around with a variation a of Substrate's PoW block production. Contrary to existing PoW engine my design relies on a PoW generation mechanism which is external to Substrate. The PoW ...
Yury Yukhananov's user avatar
3 votes
1 answer
57 views

Substrate Node wont restart

We are running a substrate node in testing/development and the server ran out of disk space. We cleared up space by deleting the log files and now the node wont start. Service(Client(RuntimeApiError(...
donkeydonkey's user avatar
3 votes
1 answer
78 views

What prevents a primary staker from holding off staking to wait for a specific outcome they want in BABE?

One of the issues of PoS as far as I understand is the randomness that selects a staker. Ouroboros Praos, and also BABE use VRFs (Verifiable Random Functions) to assign primary and secondary leaders ...
The Quantum Physicist's user avatar
3 votes
1 answer
98 views

Certain validator nodes produce more blocks than other nodes (BABE)

At Ternoa we are observing an interesting phenomenon where a node operator consistently produces more blocks than other node operators. In this case, he has two validator nodes and both nodes produce ...
Marko Petrlić's user avatar
3 votes
1 answer
47 views

How to add vector fields in the block header?

I want to add a vector fields in the block header of substrate chain. Is this possible? If yes, How can i do that? Do we have any reference code for it? Thanks in advance
Deepak Chaudhary's user avatar
3 votes
0 answers
41 views

How to assign some number to the miners in POW substrate chain?

I'm working with POW substrate chain and I want to assign some number to the miners according to the work they have done earlier. Is it possible? If yes can we fetch those numbers during the block ...
Deepak Chaudhary's user avatar
3 votes
0 answers
50 views

How to add custom process without exceeding the block time?

The question can seem weird but here is the geist of it : In a custom chain with 20 sec block time, we have a different format of header that includes more information. At the end of the block, we ...
Leouarz's user avatar
  • 353
3 votes
0 answers
108 views

Proposals not getting processed, Consensus Issues on Rococo

Context: A parachain in Rococo is missing more block slots than I would expect it to at fairly random times. Version: Polkadot v0.9.42 Number of Collators: 3 Logging: (Perhaps I am missing the correct ...
Wil W's user avatar
  • 433
3 votes
1 answer
113 views

Block Finalization Issue and Recovery on Ternoa's Testnet

Over the past few days, we have encountered an issue with block finalization on the Ternoa testnet. It appears that the finalization process stopped, possibly due to one of the validators being ...
Immanuel John's user avatar
3 votes
1 answer
60 views

Is block creation guaranteed to be running after parent block is fully imported?

I observe an issue for a long time that I can't explain. There is a value produced in BlockImport::import_block that must be included in inherents of n+1. Though sometimes it seems like value is not ...
nazar-pc's user avatar
  • 551
3 votes
0 answers
79 views

Validator node dropping peers after producing a block followed by a reorg

We are seeing some strange behaviour with some (not all) of our validator nodes. We are using the standard BABE / GRANDPA pallets. When it is their turn to produce a block, they produce the block, but ...
Adam Dossa's user avatar
3 votes
1 answer
162 views

How to reject empty blocks? [duplicate]

I need to prevent empty blocks from being added to my blockchain. This is for a very small scale chain, in which 99.99884% of blocks are empty, so not adding empty blocks will dramatically reduce the ...
ashneverdawn's user avatar
2 votes
1 answer
121 views

How and where does a block production take place?

Like if I were to add some custom logic and checks to ensure only certain kind of blocks are produced by the validators or only those blocks that contain a certain size of data are produced then where ...
Sourav Mishra's user avatar
2 votes
1 answer
136 views

Why my solo chain block time is 12 seconds when set to 6?

I have an my own Substrate node (not a parachain, based on the template-node, so Aura consensus is used) and I changed the block time to 6 seconds in the runtime/src/lib.rs by setting pub const ...
Alessandro B's user avatar
2 votes
1 answer
84 views

How can we restart the chain if it becomes stuck during data migration?

I performed a runtime upgrade on the chain, but due to a migration failure, the chain stopped producing blocks. The logs only show that the migration failed. When I attempt to restart the validators, ...
Pankaj's user avatar
  • 2,021
2 votes
1 answer
70 views

Stopped block production / aura

Error with block built on 0xxxx: ClientImport("A pending forced authority set change could not be applied since it must be applied after the pending standard change at #xx") Block production ...
Akhmed Osmanov's user avatar
2 votes
1 answer
42 views

Substrate Stencil node not producing blocks

I forked the Substrate Stencil node to kickstart from Governance and Staking. I've followed the steps from both the repo and Substrate docs. I tried to run a staging node but it's idling with 4 ...
Burak's user avatar
  • 903
2 votes
1 answer
103 views

parachain-system can not get ParachainInherentData After runtime upgrade

Before this setCode upgrade, our parachain works well. After setCode upgrade, we get the following error log. Jun 02 09:39:36 Parami-AWS-SFO-DANA-01 parami[490]: 2022-06-02 09:39:36 ⚠️ ParachainSystem ...
ironman_ch_parami's user avatar
2 votes
0 answers
55 views

Recovering chain from a backup

Prerequisites: A small subset of validators controlled by my company and a much larger set of external validators. A backup of the db folder was created 4 hours (1 epoch) before an incident. ...
Maksim Ramanenkau's user avatar
2 votes
0 answers
59 views

Recovering a Bricked (no block production) Parachain on Rococo, Kusama, & Polkadot

Introduction In the Substrate ecosystem, a bricked parachain – one that has halted block production – presents a unique set of challenges. This situation can occur in various environments, notably on ...
Cedric Decoster's user avatar
2 votes
0 answers
73 views

How to solve Failed to get runtime version issue?

I recently upgraded the chain from version 0.9.36 to 1.0.0. Following this update, when attempting to perform a runtime upgrade on the blockchain, I encountered an error that resulted in the chain no ...
Ajit's user avatar
  • 827
2 votes
1 answer
94 views

How to fix slow parachain block time on rococo-local?

Hello valuable Substrate community, I started two rococo-local relaychain validators and one custom parachain. The target block time of the parachain is 12 seconds, but the actual block time is 24 ...
Chralt's user avatar
  • 543
2 votes
0 answers
31 views

No new blocks with dockerized local RPC node

I want to run the substrate node locally(with docker) to use it as an RPC provider(via ws). I want to use "author.pendingExtrinsics" method as well as "chain.subscribeNewHeads" and ...
Denys Storozhenko's user avatar
2 votes
0 answers
106 views

Collator not producing block

Changes made In previous version things were fine. In this change, I added pallet-staking in the collator. Here Staking is pallet_staking::{Pallet,...} Configured pallet_staking with reference ( but ...
Sudip Ghimire's user avatar
2 votes
0 answers
51 views

Rococo Status & Issues

lately Rococo has been producing blocks very slowly. Not sure if this is the best place to ask, but where can we find more information about this? Or where to ask about this if this isn't the correct ...
Dinonard's user avatar
  • 587
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 ...
0xsierra's user avatar
  • 106
1 vote
2 answers
79 views

How to add block author through InherentDataProvider in pow consensus?

I'm working on pow consensus chain and want to fetch block author in a pallet. I'm following Academy-PoW repo for adding block author through InherentDataProvider. But here default is passed in-place ...
Vitthal agarwal's user avatar
1 vote
1 answer
47 views

Split extrinsic execution across multiple blocks

Is it possible to split the execution of an extrinsic into several continuous blocks? Looking at this post, it is possible to create migrations, but I was wondering if the same can be applied to an ...
andresvsm's user avatar
  • 1,114
1 vote
1 answer
155 views

What happens if a validator goes offline and it's part of the session?

I've been using the validator-set pallet to add new validators on a permissioned network, and although it solves the issue related to block production slowing down when a validator is missing, it has ...
andresvsm's user avatar
  • 1,114
1 vote
0 answers
22 views

Parachain stopped producing block with: Failed to finalize election round. reason ElectionError::Fallback("`NoElection` cannot do anything.")

My config: Relay chain - Westend local Parachain1 - Westmint Parachain2 - Custom parachain I have launched relay chain and parachains then reserved paraId for my parachains. Connected parachains to ...
Artem Levchuk's user avatar
1 vote
0 answers
20 views

parachain not producing blocks?

I am using relay chain of polkadot with branch 1.1.0 of polkadot sdk. i have my relay chain running with era and epoch time of 2 minutes each . while changing lease period to 10 minutes and keeping ...
Karanvir Singh's user avatar
1 vote
0 answers
27 views

How to Fetch data at the time of block production?

Can I implement a pallet which holds the node information and at the block production time we can use this node information?
Deepak Chaudhary's user avatar
1 vote
0 answers
42 views

No Block production with multiple nodes / AURA

I have a solo-chain with PoA consensus, MILLISECS_PER_BLOCK of 1000, 5MB of MAX_BLOCK_SIZE, and 400ms of MAXIMUM_BLOCK_WEIGHT. The chain produces and finalizes blocks when there's a single authoring ...
Discardo's user avatar
  • 436
1 vote
0 answers
100 views

how to solve Networking or low-level protocol error?

I am running solochain so randomly my chain stop producing blocks and giving this error. Every time when chain giving this error i need to stop and re-run the node. substrate version using: v1.0.0 Can ...
Pankaj's user avatar
  • 2,021
0 votes
1 answer
31 views

No block are producing while running node in dev mode

Even though I set genesis staker here no block are producing. Someone please help me. ganesholi@Ganeshs-MacBook-Air MarketplaceMVP_Substrate % ./target/release/node-template --dev 2023-07-02 08:15:58 ...
go11li's user avatar
  • 1,241
0 votes
1 answer
21 views

Why Does Subscan Show Only 12M Blocks And Not Several 100M?

By my calculations Polkadot should create 1 block every 6 seconds which is confirmed by looking at https://polkadot.subscan.io/ - however it states there are only 12M blocks when there should be many ...
noto77's user avatar
  • 3
0 votes
1 answer
35 views

Do data in events increase the size of the block?

On one hand, if we emit extrinsic event with no data and other hand we emit the extrinsic event with data. Will the second option will increase the block size or on both cases the block-size will be ...
Pankaj's user avatar
  • 2,021
0 votes
1 answer
58 views

How to start block on_finalize before we reach block time?

I am currently trying to understand how we could improve our block production performance at Avail. By looking at this answer on a previous question, I get that for a 6 second block time, we allocate ...
Leouarz's user avatar
  • 353