Questions tagged [substrate-block-time]
The substrate-block-time tag has no usage guidance.
8
questions
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 ...
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.
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 ...
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 ...
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, ...
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 ...
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 ...
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 ...