proposer: return optional block (#2834)

This opens up the proposer to only optionally create blocks. Nodes may
only make blocks when there are transactions or the chain is scheduled.

---------

Co-authored-by: command-bot <>
This commit is contained in:
asynchronous robandcommand-bot authored and GitHub committed 2024-01-04 19:57:10 +01:00
1 parent e07476e34e
commit 19de1c9660
5 files changed
+41 -10

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
title: "proposer: return optional block"
doc:
- audience: Node Dev
description: |
The `ProposerInterface` trait now returns an optional `Proposal`, allowing
for no block to be created. This is a breaking change that only impacts custom
`ProposerInterface` implementations. The change allows more flexibility in choosing
when to create blocks.
crates:
- name: "cumulus-client-consensus-aura"
- name: "cumulus-client-consensus-proposer"