Skip to main content

Questions tagged [block-production]

The tag has no usage guidance.

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

Fixed Amount of Minting per block?

If i want to mint specific amount of native coin by the end of every block where should i implement the logic . Do i customize the pallet-template using pallet hooks , or do i implement a existing ...
0 votes
1 answer
13 views

How to Sync Two Boot Nodes for Redundancy?

I'm working on a blockchain project and want to ensure uninterrupted block production even if one of our boot nodes goes down. How can we effectively sync two boot nodes so that if one goes offline, ...
1 vote
0 answers
18 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 ...
2 votes
0 answers
54 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. ...
1 vote
0 answers
18 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 ...
0 votes
0 answers
13 views

What is the expected time from sending a extrinsic to a block it's in being finalised?

Can we predict an average time derived from consensus, async backing and what other factors can impact this time? Thanks
0 votes
1 answer
56 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 ...
3 votes
1 answer
45 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
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 ...
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?
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 ...
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 ...
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 ...
0 votes
0 answers
98 views

Rococo testnet Parachain is not Producing Blocks?

I'm trying to connect to rococo testnet as a parachain using own customized parachain ! It works locally and produces blocks when connected to local Relay chain But when connected to Rococo it doesn't ...
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 ...
2 votes
0 answers
72 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 ...
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, ...
3 votes
0 answers
49 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 ...
1 vote
0 answers
97 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 ...
3 votes
1 answer
112 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 ...
3 votes
0 answers
107 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 ...
0 votes
0 answers
25 views

Collator starts after more than 10 hours on Azure cloud

I am migrating from AWS to Azure Cloud. I have two parachain collators running. One on AWS (yet to migrate) and another on Azure Cloud (migrated). Whenever I restart the service on AWS, it hardly ...
6 votes
0 answers
67 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 ...
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 ...
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 ...
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 ...
4 votes
0 answers
89 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 ...
3 votes
2 answers
93 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 (...
0 votes
1 answer
34 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 ...
3 votes
1 answer
87 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 ...
0 votes
1 answer
95 views

Why do most parachains have a MAXIMUM_BLOCK_WEIGHT of 0.5 seconds? [duplicate]

From my survey of a few parachains, the definition I find for MAXIMUM_BLOCK_WEIGHT is often 0.5 seconds of compute : /// Maximum weight per block pub const MAXIMUM_BLOCK_WEIGHT: Weight = Weight::...
2 votes
1 answer
92 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 ...
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(...
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 ...
6 votes
1 answer
387 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 ...
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 ...
0 votes
0 answers
29 views

Our on_initialize function takes approximately 5 seconds, this breaks the parachain eventually

We need to run an on-initialize function that runs for 5 to 6 seconds. The error we run into when we do this is "Block production took too long". We have tried to increase the ...
3 votes
1 answer
152 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 ...
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 ...
4 votes
1 answer
179 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.
1 vote
1 answer
48 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
1 answer
45 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 ...
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 ...
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 ...
0 votes
1 answer
20 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 ...
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 ...
2 votes
0 answers
105 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 ...
0 votes
1 answer
64 views

Clean node template doesn't produce blocks due to "No route to host" error [closed]

Substrate node template (version polkadot-v0.9.26) could not find any peers including itself (as I understood) and does not produce any blocks. I did not add any lines of code. Logs: 2022-08-06 16:42:...
3 votes
1 answer
148 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 ...
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 ...