-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configurable Block Production Trigger #50
Comments
For proof-of-authority network, should there exist a hybrid mode of interval and instant, similar to e.g. Nagle's algorithm? We have three timers, with following expiration times:
When a block is produced, restart timers A and B and clear timer C. This way. we can produce new blocks faster than some fixed interval, but still include multiple transactions per block. The last timer, C, makes sure we will not produce blocks too quickly, so other nodes can still keep up. |
This sounds great, and would also be useful in a rollup configuration without PoS. It helps avoid long strings of empty blocks when there's low activity. |
* Update author. * Add more fields. * Update author.
Currently, blocks are produced instantly when transactions are submitted. In order to support multi-tx blocks, we need a configuration mechanism to enable/disable different block production triggers on startup.
e.g.
fuel-core run --block-production-mode interval
orfuel-core run --block-production-mode instant
This task should cover the implementation of the following block production options:
interval
Timer-based: For simulating consensus block delays, the timer trigger will fire a block production event on a configurable intervalinstant
Instant trigger: For integration testing contracts etc, make the tx pool trigger a block production event every time a tx is inserted.none
No block production: For passive nodes that simply listen for blockspos
mode will be deferred to a later task.The text was updated successfully, but these errors were encountered: