Skip to content

Send NewRound notifications after proposals.#4473

Merged
afck merged 2 commits intolinera-io:mainfrom
afck:proposal-notification
Sep 3, 2025
Merged

Send NewRound notifications after proposals.#4473
afck merged 2 commits intolinera-io:mainfrom
afck:proposal-notification

Conversation

@afck
Copy link
Contributor

@afck afck commented Sep 3, 2025

Motivation

NewRound notifications are mainly needed for single-leader mode, where they are triggered by timeout certificates.

However, in multi-leader mode, in case of failed proposals, they are also useful, so that the other owners can avoid making a conflicting proposal in the same round.

Proposal

Send NewRound notifications in handle_block_proposal, too.

Test Plan

An assertion was added to a worker test.

Release Plan

  • Nothing to do / These changes follow the usual release cycle.

Links

@afck afck requested review from bart-linera, deuszx and ma2bd September 3, 2025 12:56
Copy link
Contributor

@deuszx deuszx left a comment

Choose a reason for hiding this comment

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

No blockers.

@afck afck added this pull request to the merge queue Sep 3, 2025
@afck afck removed this pull request from the merge queue due to a manual request Sep 3, 2025
@afck afck enabled auto-merge September 3, 2025 14:00
@afck afck added this pull request to the merge queue Sep 3, 2025
Merged via the queue into linera-io:main with commit bae9e2d Sep 3, 2025
28 checks passed
@afck afck deleted the proposal-notification branch September 3, 2025 14:44
afck added a commit to afck/linera-protocol that referenced this pull request Sep 4, 2025
## Motivation

`NewRound` notifications are mainly needed for single-leader mode, where
they are triggered by timeout certificates.

However, in multi-leader mode, in case of failed proposals, they are
also useful, so that the other owners can avoid making a conflicting
proposal in the same round.

## Proposal

Send `NewRound` notifications in `handle_block_proposal`, too.

## Test Plan

An assertion was added to a worker test.

## Release Plan

- Nothing to do / These changes follow the usual release cycle.

## Links

- Closes linera-io#4472.
- [reviewer
checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist)
@afck afck mentioned this pull request Sep 4, 2025
ma2bd pushed a commit that referenced this pull request Sep 5, 2025
## Motivation

`NewRound` notifications are mainly needed for single-leader mode, where
they are triggered by timeout certificates.

However, in multi-leader mode, in case of failed proposals, they are
also useful, so that the other owners can avoid making a conflicting
proposal in the same round.

## Proposal

Send `NewRound` notifications in `handle_block_proposal`, too.

## Test Plan

An assertion was added to a worker test.

## Release Plan

- Nothing to do / These changes follow the usual release cycle.

## Links

- Closes #4472.
- [reviewer
checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist)
ma2bd pushed a commit that referenced this pull request Sep 5, 2025
## Motivation

`NewRound` notifications are mainly needed for single-leader mode, where
they are triggered by timeout certificates.

However, in multi-leader mode, in case of failed proposals, they are
also useful, so that the other owners can avoid making a conflicting
proposal in the same round.

## Proposal

Send `NewRound` notifications in `handle_block_proposal`, too.

## Test Plan

An assertion was added to a worker test.

## Release Plan

- Nothing to do / These changes follow the usual release cycle.

## Links

- Closes #4472.
- [reviewer
checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Block proposals should trigger NewRound notifications.

2 participants