Current implementation of AggregationLoop produce a block as soon as it starts. This ensures that when starting a chain, genesis will be generated ASAP.
In case the app is restarted, next block will be produced immediately. This is not desirable (as aggregator can restart node faster than block time).
First produced block should use block time and time of last block creation to calculate the wait before producing a block.
Current implementation of
AggregationLoopproduce a block as soon as it starts. This ensures that when starting a chain, genesis will be generated ASAP.In case the app is restarted, next block will be produced immediately. This is not desirable (as aggregator can restart node faster than block time).
First produced block should use block time and time of last block creation to calculate the wait before producing a block.