Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Refuse to re-propose a pending block signed by a different owner#6371

Merged
ma2bd merged 2 commits into
linera-io:testnet_conwayfrom
ma2bd:fix_client_pending_block
May 23, 2026
Merged

Refuse to re-propose a pending block signed by a different owner#6371
ma2bd merged 2 commits into
linera-io:testnet_conwayfrom
ma2bd:fix_client_pending_block

Conversation

@ma2bd

@ma2bd ma2bd commented May 22, 2026

Copy link
Copy Markdown
Contributor

Motivation

Solve a client-side error seen in production, likely happening when we change the preferred owner while a pending proposal exists from the previous owner.

Proposal

  • Clear the pending block if we are about to return InvalidSigner any way.

Fortunately, we don't persist pending blocks in storage any more so users could reload the page and continue.

Test Plan

CI

@ma2bd ma2bd requested review from afck and deuszx May 22, 2026 20:14

@deuszx deuszx left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Seems harmless indeed.

@ma2bd ma2bd merged commit ac78301 into linera-io:testnet_conway May 23, 2026
34 checks passed
@ma2bd ma2bd deleted the fix_client_pending_block branch May 23, 2026 03:26
pull Bot pushed a commit to Spencerx/linera-protocol that referenced this pull request May 25, 2026
## Motivation

`process_pending_block_without_prepare` calls `self.identity()` _again_,
rather than taking the identity from the pending block. This can make
the client submit a block signed by the wrong key, which is invalid.

## Proposal

Sign with the correct key.

## Test Plan

A regression test was added.

## Release Plan

- Could be backported, but
linera-io#6371 already works
around it.

## Links

- [reviewer
checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist)
ma2bd added a commit that referenced this pull request May 25, 2026
## Motivation

Fix race condition between block proposals and changes in the preferred
owner

## Proposal

* revert #6371
* backport the cleaner solutiom #6378

## Test Plan

CI

---------

Co-authored-by: Mathieu Baudet <[email protected]>
Co-authored-by: Andreas Fackler <[email protected]>
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.

2 participants