You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(block): add lazy block time as additional block production trigger in lazy aggregator mode (#1643)
<!--
Please read and fill out this form before submitting your PR.
Please make sure you have reviewed our contributors guide before
submitting your
first PR.
NOTE: PR titles should follow semantic commits:
https://www.conventionalcommits.org/en/v1.0.0/
-->
## Overview
<!--
Please provide an explanation of the PR, including the appropriate
context,
background, goal, and rationale. If there is an issue with this
information,
please provide a tl;dr and link the issue.
Ex: Closes #<issue number>
-->
One problem that chains in lazy aggregator mode have is that there is no
way externally to see if the chain is still live without sending new
transactions.
The lazy block time adds an additional trigger that can produce a block
during long periods of inactivity.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- Introduced a new configuration option `LazyBlockTime` to customize the
time interval for block production in lazy mode when no transactions are
present.
- **Enhancements**
- Improved block production efficiency in lazy aggregation mode by
implementing new timers and sleep interval calculations.
- **Testing**
- Added comprehensive tests to ensure the correct calculation of sleep
durations in various scenarios for block production.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
|BlockTime|time.Duration|time interval used for block production and block retrieval from block store ([`defaultBlockTime`][defaultBlockTime])|
64
64
|DABlockTime|time.Duration|time interval used for both block publication to DA network and block retrieval from DA network ([`defaultDABlockTime`][defaultDABlockTime])|
65
65
|DAStartHeight|uint64|block retrieval from DA network starts from this height|
66
+
|LazyBlockTime|time.Duration|time interval used for block production in lazy aggregator mode even when there are no transactions ([`defaultLazyBlockTime`][defaultLazyBlockTime])|
66
67
67
68
### Block Production
68
69
@@ -181,6 +182,7 @@ See [tutorial] for running a multi-node network with both sequencer and non-sequ
0 commit comments