Questions tagged [block-production]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
51 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, ...
Para's user avatar
  • 1,767
3 votes
0 answers
34 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
  • 177
1 vote
0 answers
42 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 ...
Para's user avatar
  • 1,767
0 votes
0 answers
19 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 ...
Nitesh B.'s user avatar
  • 101
3 votes
0 answers
91 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
  • 413
5 votes
0 answers
47 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
  • 542
3 votes
1 answer
72 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
2 votes
1 answer
55 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
0 votes
1 answer
28 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 ...
Ganesh11's user avatar
  • 1,148
4 votes
0 answers
65 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
  • 177
0 votes
1 answer
24 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 ...
Para's user avatar
  • 1,767
3 votes
2 answers
65 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
  • 529
3 votes
1 answer
45 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
4 votes
1 answer
74 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,053
3 votes
1 answer
46 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
  • 529
0 votes
1 answer
71 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::...
b0zero's user avatar
  • 502
2 votes
1 answer
65 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
  • 473
3 votes
1 answer
36 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
4 votes
1 answer
94 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
6 votes
1 answer
376 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
1 vote
1 answer
85 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
0 votes
0 answers
27 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 ...
shibshib's user avatar
  • 117
3 votes
1 answer
110 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
  • 446
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
3 votes
1 answer
124 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.
Mohammad Abuzar's user avatar
1 vote
1 answer
43 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
1 answer
43 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,094
2 votes
0 answers
26 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
0 votes
1 answer
19 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
2 votes
1 answer
99 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 Baffa's user avatar
2 votes
0 answers
86 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
0 votes
1 answer
51 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:...
Bob Satikin's user avatar
3 votes
1 answer
114 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
1 vote
1 answer
81 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,094
2 votes
1 answer
69 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
2 votes
1 answer
83 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
7 votes
1 answer
129 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
2 votes
0 answers
38 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
  • 542
2 votes
1 answer
35 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
  • 893
2 votes
1 answer
97 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
0 votes
0 answers
119 views

Node Does not Produce Blocks

I've been trying to implement a PoW consensus for my node. It was based on node template, the recipe and Kulupu's implementation of PoW. So I did quite a lot of changes to the node template and thus I'...
CREESTL's user avatar
  • 464
9 votes
1 answer
198 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,094
0 votes
1 answer
87 views

Optimistic parachain block finalization

Question Is there some some way to configure a parachain to produce blocks in a way which has high finalization rate (not PoA though) predictable finalization rate, yielding a clear optimistic ...
Bedeho Mender's user avatar
3 votes
0 answers
63 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
143 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