Replies: 2 comments 2 replies
-
Hey @ngurmen , reducing the block time has a number of effects. For consensus protocols that can offer sub-second finality, the time to finality is dominated by the VM's targeted block production rate instead of the latency of the consensus protocol itself. The tradeoff for the VM's block production rate is that by increasing the frequency of block production the VM will not be able to batch as many transactions into a block and may not amortize the cost as effectively. Producing more blocks means more blocks to store/sync and and more merkle trie roots to commit to disk for the same total amount of work (assuming that the choice is between committing N transactions into either 2 blocks over 2s or 1 block over 2s). Committing blocks more frequently results in writing merkle trie roots or diffs that need to be stored, whereas batching the same data into a single block will frequently result in a smaller representation on disk. To see how this impacts the machine specs required for nodes on your subnet, it will be specific to the workload on your subnet. To determine this, I'd recommend creating a representative workload of activity on your subnet (note: the active state size and historical state size of an archival node are important to take into consideration here since the cost of storing state will be very different for a fresh network vs. a persistent network for a long period of time) and empirically determine what machine specs are necessary to handle it when switching from 2s to 1s if you want to get an accurate estimate. |
Beta Was this translation helpful? Give feedback.
-
Hi @aaronbuchwald, thank you for the information. I would like to follow up with a question from a different angle. Would the subnet be more susceptible to chain reorgs with a smaller min block time? Would there be a need for adjustment of block acceptance parameters to compensate for that? If it is compensated would this compensation negate the benefits of reducing the min block time by half? |
Beta Was this translation helpful? Give feedback.
-
Hello Everyone,
I have a question regarding the min block time in a subnet. What kind of considerations we would need to think about in terms of things like network load, machine specs, etc. if we want to cut the block time of a subnet in half? I would appreciate any feedback on this.
Thanks,
Nihat
Beta Was this translation helpful? Give feedback.
All reactions