Skip to content
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

feat!: Allow empty blocks #5320

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

dima74
Copy link
Contributor

@dima74 dima74 commented Feb 18, 2025

Context

Fixes #5317

Solution

Allow empty blocks (without transactions)

Migration Guide

Note that if you have pre-commit trigger, it will now be run also for empty blocks


TODO:

  • Fix python tests

Checklist

  • I've read CONTRIBUTING.md.
  • (optional) I've written unit tests for the code changes.
  • All review comments have been resolved.
  • All CI checks pass.

Signed-off-by: Dmitry Murzin <[email protected]>
Signed-off-by: Dmitry Murzin <[email protected]>
@dima74 dima74 self-assigned this Feb 18, 2025
@github-actions github-actions bot added the api-changes Changes in the API for client libraries label Feb 18, 2025
@s8sato s8sato self-assigned this Feb 19, 2025
Comment on lines -887 to +886
if tx_cache_full || tx_cache_non_empty && (view_change_in_progress || deadline_reached) {
if tx_cache_full || view_change_in_progress || deadline_reached {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if continuously creating blocks, regardless of whether the previous block is empty, meets the requirement

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the requirement was just to finalize the last block and avoid soft fork

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-changes Changes in the API for client libraries
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Finalize non-empty blocks by proactively creating the next block, even if it is empty
3 participants