Questions tagged [block-time]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
9 votes
3 answers
342 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
6 votes
1 answer
374 views

What is the possible minimum block time?

Is there a way to determine/calculate what the minimum block time would be? If not, what could we consider before lowering the block time, and how to monitor the side effects of small block time? I ...
Burak's user avatar
  • 893
4 votes
1 answer
70 views

Why the block time is 6s here?

https://github.com/paritytech/cumulus/pull/2213/files#diff-04c884d6f18e6732821418360f30ce293a09a5a817672f3a5d100d82696f70d1R721 let info_provider = timestamp_with_aura_info(6000); IIRC, the block ...
AurevoirXavier's user avatar
4 votes
0 answers
70 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
  • 199
3 votes
2 answers
144 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