Questions tagged [substrate-block-time]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4 votes
2 answers
125 views

How to configure polkadot + parachain locally to validate parachain block each 6 sec?

I want to spin up parachain LOCALLY faster. each 6 sec. How to configure polkadot with parachain? I have seen this and this and this post So my zombienet contains polkadot(obviusly😊) and two ...
rust.dev's user avatar
  • 509
4 votes
1 answer
138 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
44 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
2 votes
1 answer
113 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
3 votes
2 answers
143 views

What could happen if the `BlockWeights` is set HIGHER than `MILLISECS_PER_BLOCK` (block time)?

In Substrate docs, it's said: "The maximum block weight should be equivalent to one-third of the target block time, allocating one third for block construction, one third for network propagation, ...
afm's user avatar
  • 345
2 votes
2 answers
131 views

What happens when I decrease the `MILLISECS_PER_BLOCK` parameter in runtime/src/lib.rs

I need to change the MILLISECS_PER_BLOCK parameter to generate blocks more quickly. For example I can set it to 100 so that my transaction can execute instantly. The question is: What will happen when ...
Rong Nguyen's user avatar
6 votes
1 answer
71 views

fee economics around remark

From looking at the source code, it looks like system pallet's remark extrinsic has null weight. Even though remarks don't add anything in terms of block execution, one could argue it's still having ...
Bernardo Rodrigues's user avatar
9 votes
3 answers
334 views

How to estimate the timestamp of a future block in Substrate?

I have some expiry time in block number which I need to deem some storage values expired after that block number, however in the UX I want to present this value as an estimated datetime. So to be able ...
Hamid's user avatar
  • 101