Skip to content

Conversation

@deuszx
Copy link
Contributor

@deuszx deuszx commented Nov 19, 2025

Motivation

When debugging Faucet performance we noticed that
communicate_with_quorum takes significantly longer when sending chain updates (compared to submitting block proposals and validated certificates). Comparing the work being done between the calls, send_chain_information additionally has to load the latest hash from the local_node.chain_state_view (which is two async calls) and then read a certificate for it from the storage (another async call).

Proposal

Thread through the latest certificate if it's known and don't read it from the storage in send_chain_information.

Test Plan

Tests are updated.

Release Plan

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

Links

When debugging Faucet performance we noticed that
`communicate_with_quorum` takes significantly longer when sending chain
updates (compared to submitting block proposals and validated
certificates). Comparing the work being done between the calls,
`send_chain_information` additionally has to load the latest hash from
the `local_node.chain_state_view` (which is two async calls) and then
read a certificate for it from the storage (another async call).

Thread through the latest certificate if it's known and don't read it
from the storage in `send_chain_information`.

Tests are updated.

- Should be deployed to testnet Faucet
- Backport to `main`.

- [reviewer
checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist)
@deuszx deuszx enabled auto-merge November 19, 2025 13:45
@deuszx deuszx added this pull request to the merge queue Nov 19, 2025
Merged via the queue into main with commit 1338e54 Nov 19, 2025
32 checks passed
@deuszx deuszx deleted the main-latest-cert branch November 19, 2025 14:49
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.

3 participants